diff --git a/src/tconstruct/util/TEventHandler.java b/src/tconstruct/util/TEventHandler.java index e58586c0..32c2535a 100644 --- a/src/tconstruct/util/TEventHandler.java +++ b/src/tconstruct/util/TEventHandler.java @@ -410,21 +410,6 @@ public class TEventHandler } } - /*if (!player.worldObj.getGameRules().getGameRuleBooleanValue("keepInventory")) - { - TPlayerStats stats = TConstruct.playerTracker.getPlayerStats(player.username); - stats.armor.dropItems(); - stats.knapsack.dropItems(); - }*/ - } - } - - @ForgeSubscribe - public void onLivingDeath(LivingDeathEvent event) - { - if (event.entityLiving instanceof EntityPlayer) - { - EntityPlayer player = (EntityPlayer) event.entityLiving; if (!player.worldObj.getGameRules().getGameRuleBooleanValue("keepInventory")) { TPlayerStats stats = TConstruct.playerTracker.getPlayerStats(player.username); @@ -434,6 +419,12 @@ public class TEventHandler } } + @ForgeSubscribe + public void onLivingDeath(LivingDeathEvent event) + { + + } + void addDrops(LivingDropsEvent event, ItemStack dropStack) { EntityItem entityitem = new EntityItem(event.entityLiving.worldObj, event.entityLiving.posX, event.entityLiving.posY, event.entityLiving.posZ, dropStack); @@ -462,7 +453,7 @@ public class TEventHandler creeper.mountEntity(living.riddenByEntity); else creeper.mountEntity(living); - + EntityXPOrb orb = new EntityXPOrb(living.worldObj, living.posX, living.posY, living.posZ, random.nextInt(20) + 20); orb.mountEntity(creeper); }