Crafting Station Start

This commit is contained in:
mDiyo committed 2013-08-31 00:12:56 -07:00
1 parent 99d7ccbd4d
commit 4ec9261b41
29 files changed
+371 -249

No files matched your search

+3 -3
View File
@@ -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];
}