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
public BptBuilderBase instanciateBluePrintBuilder(int x, int y, int z, ForgeDirection o) {
BlueprintBase bpt = instanciateBlueprint();
if (bpt == null) {
return null;
}
bpt = bpt.adjustToWorld(worldObj, x, y, z, o);
if (getStackInSlot(0).getItem() instanceof ItemBlueprintStandard) {

View file

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