Added a null check

This commit is contained in:
Aidan C. Brady 2015-03-22 21:41:59 -04:00
parent 735217961c
commit 4354357462

View file

@ -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;