diff options
Diffstat (limited to 'nms-patches/EntityLeash.patch')
-rw-r--r-- | nms-patches/EntityLeash.patch | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nms-patches/EntityLeash.patch b/nms-patches/EntityLeash.patch index 190a9178..9d251bda 100644 --- a/nms-patches/EntityLeash.patch +++ b/nms-patches/EntityLeash.patch @@ -7,8 +7,8 @@ + import java.util.Iterator; import java.util.List; - -@@ -73,6 +75,12 @@ + import javax.annotation.Nullable; +@@ -74,6 +76,12 @@ while (iterator.hasNext()) { entityinsentient = (EntityInsentient) iterator.next(); if (entityinsentient.isLeashed() && entityinsentient.getLeashHolder() == entityhuman) { @@ -21,7 +21,7 @@ entityinsentient.setLeashHolder(this, true); flag = true; } -@@ -80,8 +88,11 @@ +@@ -81,8 +89,11 @@ } if (!flag) { @@ -35,7 +35,7 @@ d0 = 7.0D; list = this.world.a(EntityInsentient.class, new AxisAlignedBB(this.locX - d0, this.locY - d0, this.locZ - d0, this.locX + d0, this.locY + d0, this.locZ + d0)); iterator = list.iterator(); -@@ -89,9 +100,20 @@ +@@ -90,9 +101,20 @@ while (iterator.hasNext()) { entityinsentient = (EntityInsentient) iterator.next(); if (entityinsentient.isLeashed() && entityinsentient.getLeashHolder() == this) { |