summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityLeash.patch
diff options
context:
space:
mode:
authorAikar <aikar@aikar.co>2018-09-26 17:20:24 +1000
committermd_5 <git@md-5.net>2018-09-26 17:20:24 +1000
commite60fc34bb1c53874b071663a10fed41ddf59af42 (patch)
treeb783e56eb4e69915e0ad43c4f8cd83ad751130d5 /nms-patches/EntityLeash.patch
parent8166d17b3d77a51b2113b280afa0790c4a27e917 (diff)
downloadcraftbukkit-e60fc34bb1c53874b071663a10fed41ddf59af42.tar
craftbukkit-e60fc34bb1c53874b071663a10fed41ddf59af42.tar.gz
craftbukkit-e60fc34bb1c53874b071663a10fed41ddf59af42.tar.lz
craftbukkit-e60fc34bb1c53874b071663a10fed41ddf59af42.tar.xz
craftbukkit-e60fc34bb1c53874b071663a10fed41ddf59af42.zip
SPIGOT-4396: Improve vehicle movement
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 c742be1c..59c1825f 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;
-@@ -71,22 +73,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) {}
+@@ -71,22 +74,42 @@
while (iterator.hasNext()) {
entityinsentient = (EntityInsentient) iterator.next();
if (entityinsentient.isLeashed() && entityinsentient.getLeashHolder() == entityhuman) {