fix direction parameters choosing the wrong directions, fix #2454

This commit is contained in:
Hea3veN 2015-02-17 09:27:04 -03:00 committed by asiekierka
parent b705d6242d
commit c9cd166d2a

View file

@ -51,7 +51,7 @@ public class StatementParameterDirection implements IStatementParameter {
if (source.getTile() instanceof TileGenericPipe) {
do {
direction = ForgeDirection.getOrientation((direction.ordinal() + (mouse.getButton() > 0 ? -1 : 1)) % 6);
} while (((TileGenericPipe) source.getTile()).isPipeConnected(direction));
} while (!((TileGenericPipe) source.getTile()).isPipeConnected(direction));
}
}