mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-10 20:59:54 +01:00
SPIGOT-4982: Armor disappearing while breaking the armor stand
This commit is contained in:
parent
c45c0a983b
commit
3f9f31c3ce
@ -101,7 +101,7 @@
|
||||
} else {
|
||||
this.setHealth(f1);
|
||||
}
|
||||
@@ -474,7 +510,7 @@
|
||||
@@ -474,13 +510,13 @@
|
||||
}
|
||||
|
||||
private void f(DamageSource damagesource) {
|
||||
@ -110,6 +110,13 @@
|
||||
this.g(damagesource);
|
||||
}
|
||||
|
||||
private void g(DamageSource damagesource) {
|
||||
this.F();
|
||||
- this.d(damagesource);
|
||||
+ // this.d(damagesource); // CraftBukkit - moved down
|
||||
|
||||
ItemStack itemstack;
|
||||
int i;
|
||||
@@ -488,7 +524,7 @@
|
||||
for (i = 0; i < this.handItems.size(); ++i) {
|
||||
itemstack = (ItemStack) this.handItems.get(i);
|
||||
@ -119,7 +126,7 @@
|
||||
this.handItems.set(i, ItemStack.a);
|
||||
}
|
||||
}
|
||||
@@ -496,7 +532,7 @@
|
||||
@@ -496,10 +532,11 @@
|
||||
for (i = 0; i < this.armorItems.size(); ++i) {
|
||||
itemstack = (ItemStack) this.armorItems.get(i);
|
||||
if (!itemstack.isEmpty()) {
|
||||
@ -128,7 +135,11 @@
|
||||
this.armorItems.set(i, ItemStack.a);
|
||||
}
|
||||
}
|
||||
@@ -602,6 +638,7 @@
|
||||
+ this.d(damagesource); // CraftBukkit - moved from above
|
||||
|
||||
}
|
||||
|
||||
@@ -602,6 +639,7 @@
|
||||
|
||||
@Override
|
||||
public void killEntity() {
|
||||
|
Loading…
Reference in New Issue
Block a user