Fix ITubeConnection acceptors that aren't IGasHandler
This commit is contained in:
parent
4aad2e5364
commit
cb95cfeedd
1 changed files with 12 additions and 0 deletions
|
@ -295,4 +295,16 @@ public class PartPressurizedTube extends PartTransmitter<IGasHandler, GasNetwork
|
|||
return buffer.receive(gasStack, doEmit);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public IGasHandler getCachedAcceptor(ForgeDirection side)
|
||||
{
|
||||
if(cachedAcceptors[side.ordinal()] instanceof IGasHandler)
|
||||
{
|
||||
return super.getCachedAcceptor(side);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue