mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 10:17:38 +01:00
SPIGOT-3487: Llama doesn't drop chest
By: md_5 <git@md-5.net>
This commit is contained in:
parent
ead7545014
commit
6f93c6c962
19
paper-server/nms-patches/EntityHorseChestedAbstract.patch
Normal file
19
paper-server/nms-patches/EntityHorseChestedAbstract.patch
Normal file
@ -0,0 +1,19 @@
|
||||
--- a/net/minecraft/server/EntityHorseChestedAbstract.java
|
||||
+++ b/net/minecraft/server/EntityHorseChestedAbstract.java
|
||||
@@ -43,7 +43,7 @@
|
||||
}
|
||||
|
||||
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);
|
||||
@@ -51,6 +51,7 @@
|
||||
|
||||
this.setCarryingChest(false);
|
||||
}
|
||||
+ super.die(damagesource); // CraftBukkit
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user