From c355208be4ddd24447ffa6ebe341a83a66fc5f57 Mon Sep 17 00:00:00 2001 From: SpaceToad Date: Fri, 2 May 2014 20:41:59 +0200 Subject: [PATCH] added missing rotation to the blueprint deployer, for #1671 --- .../core/blueprints/RealBlueprintDeployer.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/common/buildcraft/core/blueprints/RealBlueprintDeployer.java b/common/buildcraft/core/blueprints/RealBlueprintDeployer.java index fd63fe6f..75309b0d 100755 --- a/common/buildcraft/core/blueprints/RealBlueprintDeployer.java +++ b/common/buildcraft/core/blueprints/RealBlueprintDeployer.java @@ -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 (); }