Added a null check
This commit is contained in:
parent
735217961c
commit
4354357462
1 changed files with 1 additions and 1 deletions
|
@ -312,7 +312,7 @@ public class GasNetwork extends DynamicNetwork<IGasHandler, GasNetwork>
|
|||
|
||||
for(ForgeDirection side : sides)
|
||||
{
|
||||
if(acceptor.canReceiveGas(side.getOpposite(), type))
|
||||
if(acceptor != null && acceptor.canReceiveGas(side.getOpposite(), type))
|
||||
{
|
||||
toReturn.add(acceptor);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue