Merge pull request #2909 from austinv11/patch-1

Removed debug messages in the flood gate
This commit is contained in:
Adrian Siekierka 2015-07-23 17:58:10 +02:00
commit c3a427158d

View file

@ -261,23 +261,19 @@ public class TileFloodGate extends TileBuildCraft implements IFluidHandler {
public void readData(ByteBuf stream) { public void readData(ByteBuf stream) {
for (int i = 0; i < 6; i++) { for (int i = 0; i < 6; i++) {
blockedSides[i] = stream.readBoolean(); blockedSides[i] = stream.readBoolean();
System.out.println("Rsides=" + i + "=" + blockedSides[i]);
} }
} }
@Override @Override
public void writeData(ByteBuf stream) { public void writeData(ByteBuf stream) {
for (int i = 0; i < 6; i++) { for (int i = 0; i < 6; i++) {
System.out.println("Wsides=" + i + "=" + blockedSides[i]);
stream.writeBoolean(blockedSides[i]); stream.writeBoolean(blockedSides[i]);
} }
} }
public void switchSide(ForgeDirection side) { public void switchSide(ForgeDirection side) {
System.out.println("Csides=" + side.ordinal() + "=" + blockedSides[side.ordinal()]);
if (side.ordinal() != 1) { if (side.ordinal() != 1) {
blockedSides[side.ordinal()] = !blockedSides[side.ordinal()]; blockedSides[side.ordinal()] = !blockedSides[side.ordinal()];
System.out.println("Ssides=" + side.ordinal() + "=" + blockedSides[side.ordinal()]);
rebuildQueue(); rebuildQueue();
sendNetworkUpdate(); sendNetworkUpdate();