Skip to content

Commit

Permalink
Clean up logged mod states (#5227)
Browse files Browse the repository at this point in the history
  • Loading branch information
bs2609 authored and mezz committed Nov 23, 2018
1 parent 8d372f9 commit 0b47ccc
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.google.common.collect.Multimap;
import com.google.common.collect.MultimapBuilder;
import com.google.common.eventbus.EventBus;
import com.google.common.eventbus.Subscribe;

Expand All @@ -64,7 +65,7 @@ public class LoadController
private EventBus masterChannel;
private ImmutableMap<String, EventBus> eventChannels;
private LoaderState state;
private Multimap<String, ModState> modStates = ArrayListMultimap.create();
private Multimap<String, ModState> modStates = MultimapBuilder.hashKeys().enumSetValues(ModState.class).build();
private List<ModContainer> activeModList = Lists.newArrayList();
private ModContainer activeContainer;
private BiMap<ModContainer, Object> modObjectList;
Expand Down Expand Up @@ -113,7 +114,7 @@ public void buildModList(FMLLoadEvent event)
if (isActive)
{
activeModList.add(mod);
modStates.put(mod.getModId(), ModState.UNLOADED);
modStates.put(mod.getModId(), ModState.LOADED);
eventBus.put(mod.getModId(), bus);
FMLCommonHandler.instance().addModToResourcePack(mod);
}
Expand Down

0 comments on commit 0b47ccc

Please sign in to comment.