Added a check to prevent null world calls

This commit is contained in:
Aidan C. Brady 2014-08-20 14:35:19 -04:00
parent baae072601
commit 333fcd8ef1

View file

@ -62,6 +62,11 @@ public abstract class DynamicNetwork<A, N extends DynamicNetwork<A, N>> implemen
protected void clearIfNecessary(Coord4D acceptor, IGridTransmitter<N> transmitter, ForgeDirection side)
{
if(getWorld() == null)
{
return;
}
if(acceptor.getTileEntity(getWorld()) == null || acceptor.getTileEntity(getWorld()).isInvalid() || transmitter.canConnectToAcceptor(side, true))
{
possibleAcceptors.remove(acceptor);