fix #2331
This commit is contained in:
parent
0385bc4e42
commit
30b08352cb
2 changed files with 16 additions and 10 deletions
|
@ -117,18 +117,22 @@ public abstract class FillerPattern implements IFillerPattern {
|
|||
public Blueprint getBlueprint (Box box, World world, Block block, int meta) {
|
||||
Blueprint result = new Blueprint (box.sizeX(), box.sizeY(), box.sizeZ());
|
||||
|
||||
Template tmpl = getTemplate(box, world);
|
||||
try {
|
||||
Template tmpl = getTemplate(box, world);
|
||||
|
||||
for (int x = 0; x < box.sizeX(); ++x) {
|
||||
for (int y = 0; y < box.sizeY(); ++y) {
|
||||
for (int z = 0; z < box.sizeZ(); ++z) {
|
||||
if (tmpl.contents[x][y][z] != null) {
|
||||
result.contents[x][y][z] = SchematicRegistry.INSTANCE
|
||||
.createSchematicBlock(block, meta);
|
||||
}
|
||||
|
||||
for (int x = 0; x < box.sizeX(); ++x) {
|
||||
for (int y = 0; y < box.sizeY(); ++y) {
|
||||
for (int z = 0; z < box.sizeZ(); ++z) {
|
||||
if (tmpl.contents[x][y][z] != null) {
|
||||
result.contents[x][y][z] = SchematicRegistry.INSTANCE
|
||||
.createSchematicBlock(block, meta);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
} catch(Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
return result;
|
||||
|
|
|
@ -613,8 +613,10 @@ public class TileQuarry extends TileAbstractBuilder implements IHasWork, ISidedI
|
|||
Blueprint bpt = ((FillerPattern) FillerManager.registry.getPattern("buildcraft:frame"))
|
||||
.getBlueprint(box, worldObj, BuildCraftFactory.frameBlock, 0);
|
||||
|
||||
builder = new BptBuilderBlueprint(bpt, worldObj, box.xMin, yCoord, box.zMin);
|
||||
stage = Stage.BUILDING;
|
||||
if (bpt != null) {
|
||||
builder = new BptBuilderBlueprint(bpt, worldObj, box.xMin, yCoord, box.zMin);
|
||||
stage = Stage.BUILDING;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue