summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityLeash.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/EntityLeash.patch')
-rw-r--r--nms-patches/EntityLeash.patch10
1 files changed, 9 insertions, 1 deletions
diff --git a/nms-patches/EntityLeash.patch b/nms-patches/EntityLeash.patch
index 78552678..75bc78be 100644
--- a/nms-patches/EntityLeash.patch
+++ b/nms-patches/EntityLeash.patch
@@ -8,7 +8,15 @@
import java.util.Iterator;
import java.util.List;
import javax.annotation.Nullable;
-@@ -67,22 +69,42 @@
+@@ -29,6 +31,7 @@
+ this.locX = (double) this.blockPosition.getX() + 0.5D;
+ this.locY = (double) this.blockPosition.getY() + 0.5D;
+ this.locZ = (double) this.blockPosition.getZ() + 0.5D;
++ if (valid) world.entityJoinedWorld(this, false); // CraftBukkit
+ }
+
+ public void setDirection(EnumDirection enumdirection) {}
+@@ -67,22 +70,42 @@
while (iterator.hasNext()) {
entityinsentient = (EntityInsentient) iterator.next();
if (entityinsentient.isLeashed() && entityinsentient.getLeashHolder() == entityhuman) {