Several more fixes!
This commit is contained in:
parent
49c7b1062a
commit
3992a6ae46
2 changed files with 3 additions and 3 deletions
|
@ -260,7 +260,7 @@ public class PartPressurizedTube extends PartTransmitter<GasNetwork> implements
|
|||
@Override
|
||||
public int receiveGas(ForgeDirection side, GasStack stack)
|
||||
{
|
||||
if(getConnectionType(side) == ConnectionType.NORMAL)
|
||||
if(getConnectionType(side) == ConnectionType.NORMAL || getConnectionType(side) == ConnectionType.PULL)
|
||||
{
|
||||
return getTransmitterNetwork().emit(stack);
|
||||
}
|
||||
|
@ -277,7 +277,7 @@ public class PartPressurizedTube extends PartTransmitter<GasNetwork> implements
|
|||
@Override
|
||||
public boolean canReceiveGas(ForgeDirection side, Gas type)
|
||||
{
|
||||
return getConnectionType(side) == ConnectionType.NORMAL;
|
||||
return getConnectionType(side) == ConnectionType.NORMAL || getConnectionType(side) == ConnectionType.PULL;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -33,7 +33,7 @@ public class TileEntityDynamicValve extends TileEntityDynamicTank implements IFl
|
|||
@Override
|
||||
public FluidStack drain(ForgeDirection from, FluidStack resource, boolean doDrain)
|
||||
{
|
||||
if(fluidTank.dynamicTank.structure != null)
|
||||
if(fluidTank.dynamicTank.structure != null && fluidTank.dynamicTank.structure.fluidStored != null)
|
||||
{
|
||||
if(resource.getFluid() == fluidTank.dynamicTank.structure.fluidStored.getFluid())
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue