fixed template soft block detection
This commit is contained in:
parent
adb369c9c0
commit
de119ab52e
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue