From 43b1111ff675da84bde81936207f389215196dc7 Mon Sep 17 00:00:00 2001 From: SpaceToad Date: Tue, 8 Apr 2014 17:13:36 +0200 Subject: [PATCH] fixed incorrect clearing for templates --- common/buildcraft/api/blueprints/SchematicMask.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/buildcraft/api/blueprints/SchematicMask.java b/common/buildcraft/api/blueprints/SchematicMask.java index 46b52674..0c8876ee 100755 --- a/common/buildcraft/api/blueprints/SchematicMask.java +++ b/common/buildcraft/api/blueprints/SchematicMask.java @@ -31,6 +31,10 @@ public class SchematicMask extends SchematicBlockBase { } else { ItemStack stack = stacks.getFirst(); + // force the block to be air block, in case it's just a soft + // block which replacement is not straightforward + context.world().setBlock(x, y, z, Blocks.air, 0, 3); + stack.tryPlaceItemIntoWorld( CoreProxy.proxy.getBuildCraftPlayer(context.world()), context.world(), x, y, z, 1, 0.0f, 0.0f, 0.0f);