mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 19:59:55 +00:00
Fix crash when drawbridge is placed in drawbridge camo slot
This commit is contained in:
1 parent
7ba7c1fcf1
commit
d509d48675
1 file changed
+1
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user