mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-25 09:41:29 +01:00
SPIGOT-1875: Broken leashes not dropping
By: md_5 <git@md-5.net>
This commit is contained in:
parent
e014b0151e
commit
c32a32e573
@ -136,7 +136,17 @@
|
||||
this.unleash(true, true);
|
||||
}
|
||||
}
|
||||
@@ -1037,6 +1102,7 @@
|
||||
@@ -967,7 +1032,9 @@
|
||||
this.bC = false;
|
||||
this.leashHolder = null;
|
||||
if (!this.world.isClientSide && flag1) {
|
||||
+ this.forceDrops = true; // CraftBukkit
|
||||
this.a(Items.LEAD, 1);
|
||||
+ this.forceDrops = false; // CraftBukkit
|
||||
}
|
||||
|
||||
if (!this.world.isClientSide && flag && this.world instanceof WorldServer) {
|
||||
@@ -1037,6 +1104,7 @@
|
||||
|
||||
this.leashHolder = entityleash;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user