mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 04:52:25 +00:00
Add proper crash check
This commit is contained in:
1 parent
62c0588722
commit
27f0d9ce11
1 file changed
+11
-9
@@ -1501,15 +1501,17 @@ public final class MekanismUtils
|
||||
return true;
|
||||
}
|
||||
|
||||
if(isBCWrench(tool.getItem()) && ((IToolWrench)tool.getItem()).canWrench(player, pos))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
if(isCoFHHammer(tool.getItem()) && ((IToolHammer)tool.getItem()).isUsable(tool, player, pos))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
try {
|
||||
if(isBCWrench(tool.getItem()) && ((IToolWrench)tool.getItem()).canWrench(player, pos))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
if(isCoFHHammer(tool.getItem()) && ((IToolHammer)tool.getItem()).isUsable(tool, player, pos))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
} catch(Throwable t) {}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user