Skip to content

Commit

Permalink
Fix setDead() if mob is not dead yet. (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdielKavash authored Nov 5, 2024
1 parent 6db69bf commit fd71191
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit fd71191

Please sign in to comment.