mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-16 04:33:56 -07:00
SPIGOT-5627: Leads vanish when transporting leashed entities through a Nether portal
By: DerFrZocker <derrieple@gmail.com>
This commit is contained in:
@@ -285,7 +285,17 @@
|
|||||||
this.dropLeash(true, true);
|
this.dropLeash(true, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1412,7 +1523,14 @@
|
@@ -1341,7 +1452,9 @@
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.tickCount > 100) {
|
||||||
|
+ this.forceDrops = true; // CraftBukkit
|
||||||
|
this.spawnAtLocation((IMaterial) Items.LEAD);
|
||||||
|
+ this.forceDrops = false; // CraftBukkit
|
||||||
|
this.leashInfoTag = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@@ -1412,7 +1525,14 @@
|
||||||
int i = EnchantmentManager.getFireAspect(this);
|
int i = EnchantmentManager.getFireAspect(this);
|
||||||
|
|
||||||
if (i > 0) {
|
if (i > 0) {
|
||||||
@@ -301,7 +311,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
boolean flag = entity.hurt(DamageSource.mobAttack(this), f);
|
boolean flag = entity.hurt(DamageSource.mobAttack(this), f);
|
||||||
@@ -1480,9 +1598,10 @@
|
@@ -1480,9 +1600,10 @@
|
||||||
@Override
|
@Override
|
||||||
protected void removeAfterChangingDimensions() {
|
protected void removeAfterChangingDimensions() {
|
||||||
super.removeAfterChangingDimensions();
|
super.removeAfterChangingDimensions();
|
||||||
|
Reference in New Issue
Block a user