mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
Make the checking of instances of other mods' interfaces safer.
Fixes (part of) #2316
This commit is contained in:
1 parent
dfefcaf69a
commit
4590a71759
9 files changed
+76
-10
No files matched your search
@@ -110,7 +110,7 @@ public class BlockGasTank extends BlockContainer
|
||||
return true;
|
||||
}
|
||||
|
||||
if(ModAPIManager.INSTANCE.hasAPI("BuildCraftAPI|tools") && tool instanceof IToolWrench)
|
||||
if(MekanismUtils.isBCWrench(tool))
|
||||
((IToolWrench)tool).wrenchUsed(entityplayer, x, y, z);
|
||||
|
||||
int change = ForgeDirection.ROTATION_MATRIX[ForgeDirection.UP.ordinal()][tileEntity.facing];
|
||||
|
||||
Reference in new issue
Block a user