Fixed errors in last commit

This commit is contained in:
gmcferrin 2012-02-03 01:26:12 -05:00
parent 47ed176191
commit cb3904246c

View File

@ -295,7 +295,7 @@ public class mcBlockListener implements Listener
Player player = event.getPlayer(); Player player = event.getPlayer();
PlayerProfile PP = Users.getProfile(player); PlayerProfile PP = Users.getProfile(player);
ItemStack inhand = player.getItemInHand(); ItemStack inhand = player.getItemInHand();
sun.org.mozilla.javascript.internal.ast.Block block = event.getBlock(); Block block = event.getBlock();
Skills.monitorSkills(player, PP); Skills.monitorSkills(player, PP);
@ -358,7 +358,7 @@ public class mcBlockListener implements Listener
player.incrementStatistic(Statistic.MINE_BLOCK, event.getBlock().getType()); player.incrementStatistic(Statistic.MINE_BLOCK, event.getBlock().getType());
if(LoadProperties.toolsLoseDurabilityFromAbilities) if(LoadProperties.toolsLoseDurabilityFromAbilities)
{ {
if(!player.getItemInHand().getEnchantments().containsKey(Enchantment.DURABILITY)) if(!player.getItemInHand().getEnchantments().containsKey(Enchantment.DURABILITY))
m.damageTool(player, (short) LoadProperties.abilityDurabilityLoss); m.damageTool(player, (short) LoadProperties.abilityDurabilityLoss);