summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityHorseChestedAbstract.patch
blob: 0fff1fc3a70645a3b25f9f477cce9e0e630a91d5 (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((IMaterial) Blocks.CHEST);
             }
 
-            this.setCarryingChest(false);
+            // this.setCarryingChest(false); // CraftBukkit - moved down
         }
+        // CraftBukkit start
+        super.die(damagesource);
+        this.setCarryingChest(false);
+        // CraftBukkit end
 
     }