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
|
@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) {
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue