This commit is contained in:
asiekierka 2014-11-23 11:02:40 +01:00
parent 4790eabc66
commit c755af8ac1

View file

@ -317,13 +317,14 @@ public class TileBuilder extends TileAbstractBuilder implements IHasWork, IFluid
bpt = bpt.adjustToWorld(worldObj, x, y, z, o);
if (getStackInSlot(0).getItem() instanceof ItemBlueprintStandard) {
return new BptBuilderBlueprint((Blueprint) bpt, worldObj, x, y, z);
} else if (getStackInSlot(0).getItem() instanceof ItemBlueprintTemplate) {
return new BptBuilderTemplate(bpt, worldObj, x, y, z);
} else {
return null;
if (bpt != null) {
if (getStackInSlot(0).getItem() instanceof ItemBlueprintStandard) {
return new BptBuilderBlueprint((Blueprint) bpt, worldObj, x, y, z);
} else if (getStackInSlot(0).getItem() instanceof ItemBlueprintTemplate) {
return new BptBuilderTemplate(bpt, worldObj, x, y, z);
}
}
return null;
}
public void iterateBpt(boolean forceIterate) {