From 349cb0bba61c82e1adc6afc32c1ff8efc375c68a Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Fri, 14 Sep 2012 00:48:38 -0400 Subject: [PATCH] What is dead may never die. --- src/main/java/net/minecraft/server/EntityPlayer.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/net/minecraft/server/EntityPlayer.java b/src/main/java/net/minecraft/server/EntityPlayer.java index 9fe2d0b963..b991bfa7a7 100644 --- a/src/main/java/net/minecraft/server/EntityPlayer.java +++ b/src/main/java/net/minecraft/server/EntityPlayer.java @@ -290,6 +290,10 @@ public class EntityPlayer extends EntityHuman implements ICrafting { public void die(DamageSource damagesource) { // CraftBukkit start + if (this.dead) { + return; + } + java.util.List loot = new java.util.ArrayList(); for (int i = 0; i < this.inventory.items.length; ++i) {