Fix crash when drawbridge is placed in drawbridge camo slot

This commit is contained in:
mDiyo committed 2013-09-23 06:43:10 -07:00
1 parent 7ba7c1fcf1
commit d509d48675
1 file changed
+1 -1
+1 -1
View File
@@ -69,7 +69,7 @@ public class RedstoneMachine extends InventoryBlock
if (logic != null && logic instanceof DrawbridgeLogic)
{
ItemStack stack = ((DrawbridgeLogic) logic).getStackInSlot(1);
if (stack != null && stack.itemID < 4096 && Block.blocksList[stack.itemID] != null)
if (stack != null && stack.itemID < 4096 && Block.blocksList[stack.itemID] != null && stack.itemID != this.blockID)
return Block.blocksList[stack.itemID].colorMultiplier(world, x, y, z);
}
}