From e17b757b5d6cef9bc2a184c6396305e0b407a473 Mon Sep 17 00:00:00 2001 From: Abdiel Kavash <19243993+AbdielKavash@users.noreply.github.com> Date: Fri, 1 Nov 2024 22:36:03 -0600 Subject: [PATCH] Fix setDead() if mob is not dead yet. --- .../specialMobs/entity/enderman/Entity_SpecialEnderman.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/toast/specialMobs/entity/enderman/Entity_SpecialEnderman.java b/src/main/java/toast/specialMobs/entity/enderman/Entity_SpecialEnderman.java index b855dfc..11c326d 100644 --- a/src/main/java/toast/specialMobs/entity/enderman/Entity_SpecialEnderman.java +++ b/src/main/java/toast/specialMobs/entity/enderman/Entity_SpecialEnderman.java @@ -104,7 +104,7 @@ public void readEntityFromNBT(NBTTagCompound tag) { /// Called to remove this entity from the world. @Override public void setDead() { - if (!this.worldObj.isRemote) { + if (!this.worldObj.isRemote && this.getHealth() <= 0.0f) { Block carried = this.func_146080_bZ(); if (carried != null) { carried.dropBlockAsItem(