Added a check to prevent null world calls
This commit is contained in:
parent
baae072601
commit
333fcd8ef1
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue