@@ -1,6 +1,6 @@
|
||||
--- a/net/minecraft/server/EntityTippedArrow.java
|
||||
+++ b/net/minecraft/server/EntityTippedArrow.java
|
||||
@@ -122,6 +122,25 @@
|
||||
--- a/net/minecraft/world/entity/projectile/EntityTippedArrow.java
|
||||
+++ b/net/minecraft/world/entity/projectile/EntityTippedArrow.java
|
||||
@@ -138,6 +138,25 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
+ }
|
||||
+
|
||||
+ public void setType(String string) {
|
||||
+ this.potionRegistry = IRegistry.POTION.get(new MinecraftKey(string));
|
||||
+ this.potionRegistry = IRegistry.POTION.get(new net.minecraft.resources.MinecraftKey(string));
|
||||
+ this.getDataWatcher().set(EntityTippedArrow.COLOR, PotionUtil.a((Collection) PotionUtil.a(this.potionRegistry, (Collection) this.effects)));
|
||||
+ }
|
||||
+
|
||||
@@ -26,7 +26,7 @@
|
||||
public int getColor() {
|
||||
return (Integer) this.datawatcher.get(EntityTippedArrow.COLOR);
|
||||
}
|
||||
@@ -189,7 +208,7 @@
|
||||
@@ -205,7 +224,7 @@
|
||||
|
||||
while (iterator.hasNext()) {
|
||||
mobeffect = (MobEffect) iterator.next();
|
||||
@@ -35,7 +35,7 @@
|
||||
}
|
||||
|
||||
if (!this.effects.isEmpty()) {
|
||||
@@ -197,7 +216,7 @@
|
||||
@@ -213,7 +232,7 @@
|
||||
|
||||
while (iterator.hasNext()) {
|
||||
mobeffect = (MobEffect) iterator.next();
|
||||
|
||||
Reference in New Issue
Block a user