mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-23 21:39:40 +00:00
Add necessary null check
This commit is contained in:
1 parent
77287cbbcd
commit
dd857d6617
1 file changed
+1
-1
@@ -256,7 +256,7 @@ public class PartMechanicalPipe extends PartTransmitter<IFluidHandler, FluidNetw
|
||||
@Override
|
||||
public FluidTankInfo[] getTankInfo(EnumFacing from)
|
||||
{
|
||||
if(getConnectionType(from) != ConnectionType.NONE)
|
||||
if(from != null && getConnectionType(from) != ConnectionType.NONE)
|
||||
{
|
||||
return new FluidTankInfo[] {buffer.getInfo()};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user