summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityTippedArrow.patch
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2018-08-26 12:00:00 +1000
committermd_5 <git@md-5.net>2018-08-26 12:00:00 +1000
commitce1af0c348a8477f9ec58d79e6267e9226dc5dba (patch)
tree369972a692f450001c06a13e202d916f9c1bb5a8 /nms-patches/EntityTippedArrow.patch
parent162bda93ff76fe96a6138a14176807f21a6ddef4 (diff)
downloadcraftbukkit-ce1af0c348a8477f9ec58d79e6267e9226dc5dba.tar
craftbukkit-ce1af0c348a8477f9ec58d79e6267e9226dc5dba.tar.gz
craftbukkit-ce1af0c348a8477f9ec58d79e6267e9226dc5dba.tar.lz
craftbukkit-ce1af0c348a8477f9ec58d79e6267e9226dc5dba.tar.xz
craftbukkit-ce1af0c348a8477f9ec58d79e6267e9226dc5dba.zip
Update to Minecraft 1.13.1
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 @@