3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-24 07:10:10 +01:00
Paper/nms-patches/EntityHorseChestedAbstract.patch

24 Zeilen
718 B
Diff

2017-08-03 00:21:05 +02:00
--- a/net/minecraft/server/EntityHorseChestedAbstract.java
+++ b/net/minecraft/server/EntityHorseChestedAbstract.java
@@ -43,14 +43,18 @@
2017-08-03 00:21:05 +02:00
}
public void die(DamageSource damagesource) {
- super.die(damagesource);
+ // super.die(damagesource); // CraftBukkit - moved down
if (this.isCarryingChest()) {
if (!this.world.isClientSide) {
2018-07-15 02:00:00 +02:00
this.a((IMaterial) Blocks.CHEST);
}
2017-08-03 00:21:05 +02:00
- this.setCarryingChest(false);
+ // this.setCarryingChest(false); // CraftBukkit - moved down
2017-08-03 00:21:05 +02:00
}
+ // CraftBukkit start
+ super.die(damagesource);
+ this.setCarryingChest(false);
+ // CraftBukkit end
2017-08-03 00:21:05 +02:00
}