mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-15 12:02:49 +01:00
SPIGOT-1875: Broken leashes not dropping
This commit is contained in:
parent
7d330bc9f3
commit
7d73fbba6e
1 changed files with 11 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue