This commit is contained in:
Adrian Siekierka 2014-11-10 18:14:00 +01:00
parent 93c28597b4
commit df7b082c25
2 changed files with 5 additions and 1 deletions

View file

@ -311,6 +311,10 @@ public class TileBuilder extends TileAbstractBuilder implements IHasWork, IFluid
@Deprecated @Deprecated
public BptBuilderBase instanciateBluePrintBuilder(int x, int y, int z, ForgeDirection o) { public BptBuilderBase instanciateBluePrintBuilder(int x, int y, int z, ForgeDirection o) {
BlueprintBase bpt = instanciateBlueprint(); BlueprintBase bpt = instanciateBlueprint();
if (bpt == null) {
return null;
}
bpt = bpt.adjustToWorld(worldObj, x, y, z, o); bpt = bpt.adjustToWorld(worldObj, x, y, z, o);
if (getStackInSlot(0).getItem() instanceof ItemBlueprintStandard) { if (getStackInSlot(0).getItem() instanceof ItemBlueprintStandard) {

View file

@ -222,7 +222,7 @@ public class PipePowerWood extends Pipe<PipeTransportPower> implements IPowerRec
@Override @Override
public int receiveEnergy(ForgeDirection from, int maxReceive, public int receiveEnergy(ForgeDirection from, int maxReceive,
boolean simulate) { boolean simulate) {
if (powerSources[from.ordinal()]) { if (from.ordinal() < 6 && powerSources[from.ordinal()]) {
return battery.receiveEnergy(maxReceive, simulate); return battery.receiveEnergy(maxReceive, simulate);
} else { } else {
return 0; return 0;