Drop Leads from nether portals - Fixes #3226

This commit is contained in:
kickash32 2020-05-16 04:31:53 -04:00
parent 459f6194e8
commit 77323d14ca

View file

@ -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
}