mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 07:48:53 +01:00
Drop Leads from nether portals - Fixes #3226
This commit is contained in:
parent
511b6bc278
commit
7797aebe63
1 changed files with 10 additions and 1 deletions
|
@ -16,7 +16,7 @@ So even if something NEW comes up, it would be impossible to drop the
|
|||
same item twice because the source was destroyed.
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/Entity.java b/src/main/java/net/minecraft/server/Entity.java
|
||||
index 0a7e4449407104fe6c0ff7d00bd1f32eb074e10a..6dea557fa32fd44674bf01e2f7429c9691c315b8 100644
|
||||
index 0a7e4449407104fe6c0ff7d00bd1f32eb074e10a..32daf027a3575d73aeabf9db14a2e0c74e4cc7e6 100644
|
||||
--- a/src/main/java/net/minecraft/server/Entity.java
|
||||
+++ b/src/main/java/net/minecraft/server/Entity.java
|
||||
@@ -1968,11 +1968,12 @@ public abstract class Entity implements INamableTileEntity, ICommandListener, Ke
|
||||
|
@ -47,6 +47,15 @@ index 0a7e4449407104fe6c0ff7d00bd1f32eb074e10a..6dea557fa32fd44674bf01e2f7429c96
|
|||
if (!this.world.isClientSide && !this.dead) {
|
||||
this.world.getMethodProfiler().enter("changeDimension");
|
||||
MinecraftServer minecraftserver = this.getMinecraftServer();
|
||||
@@ -2743,7 +2750,7 @@ 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
|
||||
}
|
||||
@@ -2760,7 +2767,7 @@ public abstract class Entity implements INamableTileEntity, ICommandListener, Ke
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue