mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-20 04:09:40 +00:00
Rebase!
This commit is contained in:
1 parent
316e703b90
commit
2789545d34
567 files changed
+5211
-6296
No files matched your search
@@ -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"))
|
||||
|
||||
Reference in new issue
Block a user