2017-08-03 06:21:05 +08:00
|
|
|
--- a/net/minecraft/server/EntityHorseChestedAbstract.java
|
|
|
|
+++ b/net/minecraft/server/EntityHorseChestedAbstract.java
|
2018-01-28 06:44:16 +08:00
|
|
|
@@ -43,14 +43,18 @@
|
2017-08-03 06:21:05 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
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);
|
2018-01-28 06:44:16 +08:00
|
|
|
}
|
2017-08-03 06:21:05 +08:00
|
|
|
|
2018-01-28 06:44:16 +08:00
|
|
|
- this.setCarryingChest(false);
|
|
|
|
+ // this.setCarryingChest(false); // CraftBukkit - moved down
|
2017-08-03 06:21:05 +08:00
|
|
|
}
|
2018-01-28 06:44:16 +08:00
|
|
|
+ // CraftBukkit start
|
|
|
|
+ super.die(damagesource);
|
|
|
|
+ this.setCarryingChest(false);
|
|
|
|
+ // CraftBukkit end
|
2017-08-03 06:21:05 +08:00
|
|
|
|
|
|
|
}
|
|
|
|
|