Removed now-useless checks
This commit is contained in:
parent
dc6128a88c
commit
e7cc127bb2
2 changed files with 0 additions and 57 deletions
|
@ -231,23 +231,6 @@ public class FluidNetwork extends DynamicNetwork<IFluidHandler, FluidNetwork>
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isValidMerger(TileEntity tileEntity)
|
||||
{
|
||||
ITransmitter<FluidNetwork> transmitter = (ITransmitter<FluidNetwork>)tileEntity;
|
||||
|
||||
if(fluidStored == null || transmitter.getTransmitterNetwork(false) == null || transmitter.getTransmitterNetwork().fluidStored == null)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else if(fluidStored.getFluid() == transmitter.getTransmitterNetwork().fluidStored.getFluid())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void clientTick()
|
||||
{
|
||||
|
|
|
@ -144,46 +144,6 @@ public class PartMechanicalPipe extends PartTransmitter<FluidNetwork> implements
|
|||
nbtTags.setCompoundTag("cacheFluid", stack.writeToNBT(new NBTTagCompound()));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canConnect(ForgeDirection side)
|
||||
{
|
||||
if(!super.canConnect(side))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
TileEntity tileEntity = Object3D.get(tile()).getFromSide(side).getTileEntity(world());
|
||||
|
||||
if(tileEntity instanceof ITransmitter && TransmissionType.checkTransmissionType(tileEntity, getTransmissionType()))
|
||||
{
|
||||
ITransmitter<FluidNetwork> transmitter = (ITransmitter<FluidNetwork>)tileEntity;
|
||||
|
||||
if(getTransmitterNetwork(false) == null || transmitter.getTransmitterNetwork(false) == null)
|
||||
{
|
||||
if(transmitter.getTransmitterNetwork(false) == null || transmitter.getTransmitterNetwork(false).fluidStored == null)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else if(getTransmitterNetwork().fluidStored == null || transmitter.getTransmitterNetwork().fluidStored == null)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
if(getTransmitterNetwork(false) != null && transmitter.getTransmitterNetwork(false) != null)
|
||||
{
|
||||
if(getTransmitterNetwork().fluidStored.getFluid() == transmitter.getTransmitterNetwork().fluidStored.getFluid())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getType()
|
||||
|
|
Loading…
Reference in a new issue