blob: 2e49b194b34ea8ad6ec45a78ad831c3fab2e9192 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
--- a/net/minecraft/server/EntityHorseChestedAbstract.java
+++ b/net/minecraft/server/EntityHorseChestedAbstract.java
@@ -43,14 +43,18 @@
}
public void die(DamageSource damagesource) {
- super.die(damagesource);
+ // super.die(damagesource); // CraftBukkit - moved down
if (this.isCarryingChest()) {
if (!this.world.isClientSide) {
this.a(Item.getItemOf(Blocks.CHEST), 1);
}
- this.setCarryingChest(false);
+ // this.setCarryingChest(false); // CraftBukkit - moved down
}
+ // CraftBukkit start
+ super.die(damagesource);
+ this.setCarryingChest(false);
+ // CraftBukkit end
}
|