diff options
Diffstat (limited to 'nms-patches/EntityTippedArrow.patch')
-rw-r--r-- | nms-patches/EntityTippedArrow.patch | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/nms-patches/EntityTippedArrow.patch b/nms-patches/EntityTippedArrow.patch index 9e211602..83722039 100644 --- a/nms-patches/EntityTippedArrow.patch +++ b/nms-patches/EntityTippedArrow.patch @@ -1,9 +1,10 @@ --- a/net/minecraft/server/EntityTippedArrow.java +++ b/net/minecraft/server/EntityTippedArrow.java -@@ -116,6 +116,25 @@ +@@ -116,11 +116,30 @@ } } +- public int o() { + // CraftBukkit start accessor methods + public void refreshEffects() { + this.getDataWatcher().set(EntityTippedArrow.f, Integer.valueOf(PotionUtil.a((Collection) PotionUtil.a(this.potionRegistry, (Collection) this.effects)))); @@ -23,6 +24,12 @@ + } + // CraftBukkit end + - public int o() { ++ public int o() { // PAIL: rename getColor return ((Integer) this.datawatcher.get(EntityTippedArrow.f)).intValue(); } + +- private void d(int i) { ++ public void d(int i) { // PAIL: private -> public, rename setColor + this.at = true; + this.datawatcher.set(EntityTippedArrow.f, Integer.valueOf(i)); + } |