13
0
geforkt von Mirrors/Paper
Paper/paper-server/nms-patches/EntityHorseChestedAbstract.patch
CraftBukkit/Spigot c9693edfb0 SPIGOT-3784: Reset horse chests after event
By: md_5 <git@md-5.net>
2018-01-28 09:44:16 +11:00

24 Zeilen
725 B
Diff

--- 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
}