Tiny cleanup

This commit is contained in:
Aidan C. Brady 2015-04-13 08:19:36 -04:00
parent c61e4c116b
commit 9d76df996c

View file

@ -28,16 +28,20 @@ public abstract class Transmitter<A, N extends DynamicNetwork<A, N>> implements
{
return;
}
if(world().isRemote && theNetwork != null)
{
theNetwork.transmitters.remove(this);
if(theNetwork.transmitters.isEmpty())
{
theNetwork.deregister();
}
}
theNetwork = network;
orphaned = theNetwork == null;
if(world().isRemote && theNetwork != null)
{
theNetwork.transmitters.add(this);