From 77323d14ca636edf28e276a384ae1037c65ace77 Mon Sep 17 00:00:00 2001 From: kickash32 Date: Sat, 16 May 2020 04:31:53 -0400 Subject: [PATCH] Drop Leads from nether portals - Fixes #3226 --- ...umerous-item-duplication-issues-and-teleport-is.patch | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Spigot-Server-Patches/Fix-numerous-item-duplication-issues-and-teleport-is.patch b/Spigot-Server-Patches/Fix-numerous-item-duplication-issues-and-teleport-is.patch index 47273ab0b..b9b0c35c5 100644 --- a/Spigot-Server-Patches/Fix-numerous-item-duplication-issues-and-teleport-is.patch +++ b/Spigot-Server-Patches/Fix-numerous-item-duplication-issues-and-teleport-is.patch @@ -47,6 +47,15 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 if (!this.world.isClientSide && !this.dead) { this.world.getMethodProfiler().enter("changeDimension"); MinecraftServer minecraftserver = this.getMinecraftServer(); +@@ -0,0 +0,0 @@ public abstract class Entity implements INamableTileEntity, ICommandListener, Ke + entity.bukkitEntity = this.getBukkitEntity(); + + if (this instanceof EntityInsentient) { +- ((EntityInsentient)this).unleash(true, false); // Unleash to prevent duping of leads. ++ ((EntityInsentient)this).unleash(true, true); // Paper drop lead + } + // CraftBukkit end + } @@ -0,0 +0,0 @@ public abstract class Entity implements INamableTileEntity, ICommandListener, Ke }