Added missing import from last commit.

This commit is contained in:
gmcferrin 2012-02-03 01:33:01 -05:00
parent cb3904246c
commit 892f4935ae

View File

@ -45,6 +45,7 @@ import com.gmail.nossr50.locale.mcLocale;
import com.gmail.nossr50.skills.*; import com.gmail.nossr50.skills.*;
import com.gmail.nossr50.datatypes.FakeBlockBreakEvent; import com.gmail.nossr50.datatypes.FakeBlockBreakEvent;
import net.minecraft.server.Enchantment;
public class mcBlockListener implements Listener public class mcBlockListener implements Listener
{ {
@ -360,7 +361,7 @@ public class mcBlockListener implements Listener
if(LoadProperties.toolsLoseDurabilityFromAbilities) if(LoadProperties.toolsLoseDurabilityFromAbilities)
{ {
if(!player.getItemInHand().getEnchantments().containsKey(Enchantment.DURABILITY)) if(inhand.getEnchantments().containsKey(Enchantment.DURABILITY))
m.damageTool(player, (short) LoadProperties.abilityDurabilityLoss); m.damageTool(player, (short) LoadProperties.abilityDurabilityLoss);
} }