mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-27 23:33:08 +00:00
Fix another crash
This commit is contained in:
1 parent
ace1365d0f
commit
df70da8bd0
1 file changed
+4
-1
@@ -268,7 +268,10 @@ public class ItemBlockMachine extends ItemBlock implements IEnergizedItem, IItem
|
||||
|
||||
if(tileEntity instanceof IRedstoneControl)
|
||||
{
|
||||
((IRedstoneControl)tileEntity).setControlType(RedstoneControl.values()[stack.stackTagCompound.getInteger("controlType")]);
|
||||
if(stack.stackTagCompound != null && stack.stackTagCompound.hasKey("controlType"))
|
||||
{
|
||||
((IRedstoneControl)tileEntity).setControlType(RedstoneControl.values()[stack.stackTagCompound.getInteger("controlType")]);
|
||||
}
|
||||
}
|
||||
|
||||
if(tileEntity instanceof TileEntityFactory)
|
||||
|
||||
Reference in new issue
Block a user