This commit is contained in:
Adrian Siekierka 2014-11-06 16:00:05 +01:00
parent 8daf2f695a
commit 2507218e00

View file

@ -197,6 +197,9 @@ public class TileFloodGate extends TileBuildCraft implements IFluidHandler {
}
public void queueForFilling(int x, int y, int z) {
if (y < 0 || y > 255) {
return;
}
BlockIndex index = new BlockIndex(x, y, z);
if (visitedBlocks.add(index)) {
if ((x - xCoord) * (x - xCoord) + (z - zCoord) * (z - zCoord) > 64 * 64) {