What is dead may never die.

This commit is contained in:
EvilSeph 2012-09-14 00:48:38 -04:00
parent 412b4624c3
commit 349cb0bba6

View File

@ -290,6 +290,10 @@ public class EntityPlayer extends EntityHuman implements ICrafting {
public void die(DamageSource damagesource) { public void die(DamageSource damagesource) {
// CraftBukkit start // CraftBukkit start
if (this.dead) {
return;
}
java.util.List<org.bukkit.inventory.ItemStack> loot = new java.util.ArrayList<org.bukkit.inventory.ItemStack>(); java.util.List<org.bukkit.inventory.ItemStack> loot = new java.util.ArrayList<org.bukkit.inventory.ItemStack>();
for (int i = 0; i < this.inventory.items.length; ++i) { for (int i = 0; i < this.inventory.items.length; ++i) {