summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityTippedArrow.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/EntityTippedArrow.patch')
-rw-r--r--nms-patches/EntityTippedArrow.patch10
1 files changed, 5 insertions, 5 deletions
diff --git a/nms-patches/EntityTippedArrow.patch b/nms-patches/EntityTippedArrow.patch
index b3e1578b..5628df20 100644
--- a/nms-patches/EntityTippedArrow.patch
+++ b/nms-patches/EntityTippedArrow.patch
@@ -6,16 +6,16 @@
+ // CraftBukkit start accessor methods
+ public void refreshEffects() {
-+ this.getDataWatcher().set(EntityTippedArrow.f, Integer.valueOf(PotionUtil.a((Collection) PotionUtil.a(this.potionRegistry, (Collection) this.effects))));
++ this.getDataWatcher().set(EntityTippedArrow.g, Integer.valueOf(PotionUtil.a((Collection) PotionUtil.a(this.potionRegistry, (Collection) this.effects))));
+ }
+
+ public String getType() {
-+ return ((MinecraftKey) PotionRegistry.a.b(this.potionRegistry)).toString();
++ return IRegistry.POTION.getKey(this.potionRegistry).toString();
+ }
+
+ public void setType(String string) {
-+ this.potionRegistry = PotionRegistry.a.get(new MinecraftKey(string));
-+ this.datawatcher.set(EntityTippedArrow.f, Integer.valueOf(PotionUtil.a((Collection) PotionUtil.a(this.potionRegistry, (Collection) this.effects))));
++ this.potionRegistry = IRegistry.POTION.get(new MinecraftKey(string));
++ this.datawatcher.set(EntityTippedArrow.g, Integer.valueOf(PotionUtil.a((Collection) PotionUtil.a(this.potionRegistry, (Collection) this.effects))));
+ }
+
+ public boolean isTipped() {
@@ -24,7 +24,7 @@
+ // CraftBukkit end
+
public int getColor() {
- return ((Integer) this.datawatcher.get(EntityTippedArrow.f)).intValue();
+ return ((Integer) this.datawatcher.get(EntityTippedArrow.g)).intValue();
}
@@ -180,7 +199,7 @@