Quick lib fix

This commit is contained in:
aidancbrady 2016-01-04 18:13:46 -05:00
parent 08eb8be841
commit f9681a9942

View file

@ -1437,6 +1437,11 @@ public final class MekanismUtils
{ {
ItemStack tool = player.getCurrentEquippedItem(); ItemStack tool = player.getCurrentEquippedItem();
if(tool == null)
{
return false;
}
if(tool.getItem() instanceof IMekWrench && ((IMekWrench)tool.getItem()).canUseWrench(player, x, y, z)) if(tool.getItem() instanceof IMekWrench && ((IMekWrench)tool.getItem()).canUseWrench(player, x, y, z))
{ {
return true; return true;