This commit is contained in:
mDiyo committed 2013-08-31 05:13:31 -07:00
1 parent 316e703b90
commit 2789545d34
567 files changed
+5211 -6296

No files matched your search

+4 -4
View File
@@ -228,7 +228,7 @@ public class RedstoneMachine extends InventoryBlock
boolean activeNearbyRedstone (World world, int x, int y, int z)
{
return activeRedstone(world, x + 1, y, z) || activeRedstone(world, x - 1, y, z) || activeRedstone(world, x, y, z+1) || activeRedstone(world, x, y, z-1);
return activeRedstone(world, x + 1, y, z) || activeRedstone(world, x - 1, y, z) || activeRedstone(world, x, y, z + 1) || activeRedstone(world, x, y, z - 1);
}
boolean activeRedstone (World world, int x, int y, int z)
@@ -236,10 +236,10 @@ public class RedstoneMachine extends InventoryBlock
Block wire = Block.blocksList[world.getBlockId(x, y, z)];
if (wire != null && wire.blockID == Block.redstoneWire.blockID)
return world.getBlockMetadata(x, y, z) > 0;
return false;
}
/* Keep inventory */
@Override
public boolean removeBlockByPlayer (World world, EntityPlayer player, int x, int y, int z)
@@ -284,7 +284,7 @@ public class RedstoneMachine extends InventoryBlock
return world.setBlockToAir(x, y, z);
}
protected void dropDrawbridgeLogic (World world, int x, int y, int z, ItemStack stack)
{
if (!world.isRemote && world.getGameRules().getGameRuleBooleanValue("doTileDrops"))