shift clicking in wireless transmitter + textures

This commit is contained in:
Raoul Van den Berge
2015-12-24 17:21:55 +01:00
parent 35bacfc90b
commit b939b80ae6
8 changed files with 90 additions and 4 deletions

View File

@@ -18,7 +18,7 @@ public class TileWirelessTransmitter extends TileMachine implements IInventory
private InventorySimple inventory = new InventorySimple("wirelessTransmitter", 3);
private boolean working;
private boolean working = false;
private int progress = 0;
@Override
@@ -212,8 +212,15 @@ public class TileWirelessTransmitter extends TileMachine implements IInventory
{
super.fromBytes(buf);
boolean lastWorking = working;
working = buf.readBoolean();
progress = buf.readInt();
if (lastWorking != working)
{
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
}
}
@Override