fixed incorrect clearing for templates

This commit is contained in:
SpaceToad 2014-04-08 17:13:36 +02:00
parent aa5915ed4e
commit 43b1111ff6

View file

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