mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
Added missing import from last commit.
This commit is contained in:
parent
cb3904246c
commit
892f4935ae
@ -45,6 +45,7 @@ import com.gmail.nossr50.locale.mcLocale;
|
||||
import com.gmail.nossr50.skills.*;
|
||||
import com.gmail.nossr50.datatypes.FakeBlockBreakEvent;
|
||||
|
||||
import net.minecraft.server.Enchantment;
|
||||
|
||||
public class mcBlockListener implements Listener
|
||||
{
|
||||
@ -360,7 +361,7 @@ public class mcBlockListener implements Listener
|
||||
|
||||
if(LoadProperties.toolsLoseDurabilityFromAbilities)
|
||||
{
|
||||
if(!player.getItemInHand().getEnchantments().containsKey(Enchantment.DURABILITY))
|
||||
if(inhand.getEnchantments().containsKey(Enchantment.DURABILITY))
|
||||
m.damageTool(player, (short) LoadProperties.abilityDurabilityLoss);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user