From 7d73fbba6e195bd327b6311204713f0ce9e39bd0 Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 11 Mar 2016 19:24:57 +1100 Subject: SPIGOT-1875: Broken leashes not dropping --- nms-patches/EntityInsentient.patch | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'nms-patches') 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 { -- cgit v1.2.3