mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-26 19:09:44 -05:00
[Bleeding] Made Iron Golems and Ocelots throw EntityDeathEvent. This fixes BUKKIT-1010.
This commit is contained in:
1 parent
1c641ed982
commit
0ba2d285f0
2 files changed
+12
-3
No files matched your search
@@ -100,7 +100,9 @@ public class EntityOcelot extends EntityTameableAnimal {
|
||||
return super.damageEntity(damagesource, i);
|
||||
}
|
||||
|
||||
protected void dropDeathLoot(boolean flag, int i) {}
|
||||
protected void dropDeathLoot(boolean flag, int i) {
|
||||
super.dropDeathLoot(flag, i); // CraftBukkit - Calls EntityDeathEvent
|
||||
}
|
||||
|
||||
public boolean b(EntityHuman entityhuman) {
|
||||
ItemStack itemstack = entityhuman.inventory.getItemInHand();
|
||||
|
||||
Reference in new issue
Block a user