parent
93c28597b4
commit
df7b082c25
2 changed files with 5 additions and 1 deletions
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue