mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-20 04:09:40 +00:00
Crafting Station Start
This commit is contained in:
1 parent
99d7ccbd4d
commit
4ec9261b41
29 files changed
+371
-249
No files matched your search
@@ -45,11 +45,11 @@ public class RedstoneMachine extends InventoryBlock
|
||||
{
|
||||
TileEntity logic = world.getBlockTileEntity(x, y, z);
|
||||
|
||||
if (logic != null && logic instanceof IInventory)
|
||||
if (logic != null && logic instanceof DrawbridgeLogic)
|
||||
{
|
||||
if (((IInventory) logic).getStackInSlot(1) != null)
|
||||
if (((DrawbridgeLogic) logic).getStackInSlot(1) != null)
|
||||
{
|
||||
ItemStack stack = ((IInventory) logic).getStackInSlot(1);
|
||||
ItemStack stack = ((DrawbridgeLogic) logic).getStackInSlot(1);
|
||||
if (stack.itemID < 4096 && Block.blocksList[stack.itemID] != null)
|
||||
return lightValue[stack.itemID];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user