summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityInsentient.patch
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2016-03-11 19:24:57 +1100
committermd_5 <git@md-5.net>2016-03-11 19:24:57 +1100
commit7d73fbba6e195bd327b6311204713f0ce9e39bd0 (patch)
tree5fc0a2b80587383a31f865eff732863fe3bc2947 /nms-patches/EntityInsentient.patch
parent7d330bc9f363162bb8c0f6f829f53dc4b7d3de8e (diff)
downloadcraftbukkit-7d73fbba6e195bd327b6311204713f0ce9e39bd0.tar
craftbukkit-7d73fbba6e195bd327b6311204713f0ce9e39bd0.tar.gz
craftbukkit-7d73fbba6e195bd327b6311204713f0ce9e39bd0.tar.lz
craftbukkit-7d73fbba6e195bd327b6311204713f0ce9e39bd0.tar.xz
craftbukkit-7d73fbba6e195bd327b6311204713f0ce9e39bd0.zip
SPIGOT-1875: Broken leashes not dropping
Diffstat (limited to 'nms-patches/EntityInsentient.patch')
-rw-r--r--nms-patches/EntityInsentient.patch12
1 files changed, 11 insertions, 1 deletions
diff --git a/nms-patches/EntityInsentient.patch b/nms-patches/EntityInsentient.patch
index dbed31cb..a7de7164 100644
--- a/nms-patches/EntityInsentient.patch
+++ b/nms-patches/EntityInsentient.patch
@@ -136,7 +136,17 @@
this.unleash(true, true);
}
}
-@@ -1037,6 +1102,7 @@
+@@ -967,7 +1032,9 @@
+ this.bC = false;
+ this.leashHolder = null;
+ if (!this.world.isClientSide && flag1) {
++ this.forceDrops = true; // CraftBukkit
+ this.a(Items.LEAD, 1);
++ this.forceDrops = false; // CraftBukkit
+ }
+
+ if (!this.world.isClientSide && flag && this.world instanceof WorldServer) {
+@@ -1037,6 +1104,7 @@
this.leashHolder = entityleash;
} else {