Merge pull request #2468 from hea3ven/6.4.x
fix direction parameters choosing the wrong directions, fix #2454
This commit is contained in:
commit
194e1adb50
3 changed files with 2 additions and 3 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue