mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-09 04:09:54 +01:00
SPIGOT-3784: Reset horse chests after event
This commit is contained in:
parent
c7656468e4
commit
dac2a4a6ae
@ -1,6 +1,6 @@
|
|||||||
--- a/net/minecraft/server/EntityHorseChestedAbstract.java
|
--- a/net/minecraft/server/EntityHorseChestedAbstract.java
|
||||||
+++ b/net/minecraft/server/EntityHorseChestedAbstract.java
|
+++ b/net/minecraft/server/EntityHorseChestedAbstract.java
|
||||||
@@ -43,7 +43,7 @@
|
@@ -43,14 +43,18 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
public void die(DamageSource damagesource) {
|
public void die(DamageSource damagesource) {
|
||||||
@ -9,11 +9,15 @@
|
|||||||
if (this.isCarryingChest()) {
|
if (this.isCarryingChest()) {
|
||||||
if (!this.world.isClientSide) {
|
if (!this.world.isClientSide) {
|
||||||
this.a(Item.getItemOf(Blocks.CHEST), 1);
|
this.a(Item.getItemOf(Blocks.CHEST), 1);
|
||||||
@@ -51,6 +51,7 @@
|
|
||||||
|
|
||||||
this.setCarryingChest(false);
|
|
||||||
}
|
}
|
||||||
+ super.die(damagesource); // CraftBukkit
|
|
||||||
|
- this.setCarryingChest(false);
|
||||||
|
+ // this.setCarryingChest(false); // CraftBukkit - moved down
|
||||||
|
}
|
||||||
|
+ // CraftBukkit start
|
||||||
|
+ super.die(damagesource);
|
||||||
|
+ this.setCarryingChest(false);
|
||||||
|
+ // CraftBukkit end
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user