Tiny cleanup
This commit is contained in:
parent
c61e4c116b
commit
9d76df996c
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue