ConcurrentHashMaps don't like null keys

This commit is contained in:
Ben Spiers 2015-02-12 16:59:39 +00:00
parent 122f4190bd
commit 7e08643ebd

View file

@ -73,7 +73,10 @@ public abstract class DynamicNetwork<A, N extends DynamicNetwork<A, N>> implemen
if(acceptor.getTileEntity(getWorld()) == null || acceptor.getTileEntity(getWorld()).isInvalid() || transmitter.canConnectToAcceptor(side, true))
{
possibleAcceptors.remove(acceptor);
acceptorDirections.remove(acceptor.getTileEntity(getWorld()));
if(acceptor.getTileEntity(getWorld()) != null)
{
acceptorDirections.remove(acceptor.getTileEntity(getWorld()));
}
}
}