Fix another crash

This commit is contained in:
Aidan C. Brady 2013-11-22 07:34:03 -05:00
parent ace1365d0f
commit df70da8bd0

View file

@ -267,9 +267,12 @@ public class ItemBlockMachine extends ItemBlock implements IEnergizedItem, IItem
}
if(tileEntity instanceof IRedstoneControl)
{
if(stack.stackTagCompound != null && stack.stackTagCompound.hasKey("controlType"))
{
((IRedstoneControl)tileEntity).setControlType(RedstoneControl.values()[stack.stackTagCompound.getInteger("controlType")]);
}
}
if(tileEntity instanceof TileEntityFactory)
{