Skip to content

Commit

Permalink
Clean up uncommitted transmitter network changes. Might fix networks …
Browse files Browse the repository at this point in the history
…failing!
  • Loading branch information
thiakil committed Apr 26, 2018
1 parent 574bffa commit 2657f7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/main/java/mekanism/api/transmitters/DynamicNetwork.java
Expand Up @@ -279,6 +279,8 @@ public void register()
public void deregister()
{
transmitters.clear();
transmittersToAdd.clear();
transmittersAdded.clear();

if(FMLCommonHandler.instance().getEffectiveSide().isServer())
{
Expand Down
Expand Up @@ -82,10 +82,8 @@ public void registerNetwork(DynamicNetwork network)

public void removeNetwork(DynamicNetwork network)
{
if(networks.contains(network))
{
networks.remove(network);
}
networks.remove(network);
networksToChange.remove(network);
}

@SubscribeEvent
Expand Down

1 comment on commit 2657f7b

@aidancbrady
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ooh this is a big deal!

Please sign in to comment.