geforkt von Mirrors/Paper
Fix lead duplication
Dieser Commit ist enthalten in:
Ursprung
cfd2fcf443
Commit
cfebf1baa7
@ -48,14 +48,28 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
this.world.getMethodProfiler().enter("changeDimension");
|
this.world.getMethodProfiler().enter("changeDimension");
|
||||||
// CraftBukkit start
|
// CraftBukkit start
|
||||||
@@ -0,0 +0,0 @@ public abstract class Entity implements INamableTileEntity, ICommandListener, Ke
|
@@ -0,0 +0,0 @@ public abstract class Entity implements INamableTileEntity, ICommandListener, Ke
|
||||||
entity.bukkitEntity = this.getBukkitEntity();
|
// CraftBukkit end
|
||||||
|
|
||||||
if (this instanceof EntityInsentient) {
|
this.world.getMethodProfiler().exitEnter("reloading");
|
||||||
|
+ // Paper start - Change lead drop timing to prevent dupe
|
||||||
|
+ if (this instanceof EntityInsentient) {
|
||||||
|
+ ((EntityInsentient) this).unleash(true, true); // Paper drop lead
|
||||||
|
+ }
|
||||||
|
+ // Paper end
|
||||||
|
Entity entity = this.getEntityType().a((World) worldserver);
|
||||||
|
|
||||||
|
if (entity != null) {
|
||||||
|
@@ -0,0 +0,0 @@ public abstract class Entity implements INamableTileEntity, ICommandListener, Ke
|
||||||
|
// CraftBukkit start - Forward the CraftEntity to the new entity
|
||||||
|
this.getBukkitEntity().setHandle(entity);
|
||||||
|
entity.bukkitEntity = this.getBukkitEntity();
|
||||||
|
-
|
||||||
|
- if (this instanceof EntityInsentient) {
|
||||||
- ((EntityInsentient) this).unleash(true, false); // Unleash to prevent duping of leads.
|
- ((EntityInsentient) this).unleash(true, false); // Unleash to prevent duping of leads.
|
||||||
+ ((EntityInsentient) this).unleash(true, true); // Paper drop lead
|
- }
|
||||||
}
|
|
||||||
// CraftBukkit end
|
// CraftBukkit end
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -0,0 +0,0 @@ public abstract class Entity implements INamableTileEntity, ICommandListener, Ke
|
@@ -0,0 +0,0 @@ public abstract class Entity implements INamableTileEntity, ICommandListener, Ke
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren