From de119ab52e94bb33cba6439f17d43f3388b97b89 Mon Sep 17 00:00:00 2001 From: SpaceToad Date: Wed, 7 May 2014 11:56:32 +0200 Subject: [PATCH] fixed template soft block detection --- common/buildcraft/core/blueprints/Template.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/buildcraft/core/blueprints/Template.java b/common/buildcraft/core/blueprints/Template.java index c03057d9..8683b354 100644 --- a/common/buildcraft/core/blueprints/Template.java +++ b/common/buildcraft/core/blueprints/Template.java @@ -12,6 +12,7 @@ import net.minecraft.block.Block; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.tileentity.TileEntity; + import buildcraft.BuildCraftBuilders; import buildcraft.api.blueprints.IBuilderContext; import buildcraft.api.blueprints.SchematicMask; @@ -42,7 +43,7 @@ public class Template extends BlueprintBase { int posY = (int) (y - context.surroundingBox().pMin().y); int posZ = (int) (z - context.surroundingBox().pMin().z); - if (!BuildCraftAPI.softBlocks.contains(block)) { + if (!BuildCraftAPI.isSoftBlock(anchorTile.getWorldObj(), posX, posY, posZ)) { contents [posX][posY][posZ] = new SchematicMask(true); } }