added missing rotation to the blueprint deployer, for #1671

This commit is contained in:
SpaceToad 2014-05-02 20:41:59 +02:00
parent 830ba84c87
commit c355208be4

View file

@ -27,6 +27,23 @@ public class RealBlueprintDeployer extends BlueprintDeployer {
bpt.id = new BlueprintId();
bpt.id.kind = Kind.Blueprint;
BptContext context = bpt.getContext(world, bpt.getBoxForPos(x, y, z));
if (bpt.rotate) {
if (dir == ForgeDirection.EAST) {
// Do nothing
} else if (dir == ForgeDirection.SOUTH) {
bpt.rotateLeft(context);
} else if (dir == ForgeDirection.WEST) {
bpt.rotateLeft(context);
bpt.rotateLeft(context);
} else if (dir == ForgeDirection.NORTH) {
bpt.rotateLeft(context);
bpt.rotateLeft(context);
bpt.rotateLeft(context);
}
}
new BptBuilderBlueprint(bpt, world, x, y, z).deploy ();
}