mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-27 15:23:16 +00:00
Tiny cleanup
This commit is contained in:
1 parent
c61e4c116b
commit
9d76df996c
1 file changed
+4
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user