Merge pull request #2468 from hea3ven/6.4.x

fix direction parameters choosing the wrong directions, fix #2454
This commit is contained in:
Adrian Siekierka 2015-02-18 11:41:32 +01:00
commit 194e1adb50
3 changed files with 2 additions and 3 deletions

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));
}
}

View file

@ -55,7 +55,6 @@ import buildcraft.api.events.PipePlacedEvent;
import buildcraft.api.events.RobotPlacementEvent;
import buildcraft.api.gates.GateExpansions;
import buildcraft.api.gates.IGateExpansion;
import buildcraft.api.robots.EntityRobotBase;
import buildcraft.api.tools.IToolWrench;
import buildcraft.api.transport.IPipe;
import buildcraft.api.transport.IPipeTile;