mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-16 06:30:46 +01:00
Drop Leads from nether portals - Fixes #3226
This commit is contained in:
parent
459f6194e8
commit
77323d14ca
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue