Fix possible NPE when calling Loader.getIndexedModList #4919
This commit is contained in:
parent
4f294da799
commit
789d9437b2
|
@ -744,7 +744,7 @@ public class Loader
|
|||
|
||||
public Map<String,ModContainer> getIndexedModList()
|
||||
{
|
||||
return ImmutableMap.copyOf(namedMods);
|
||||
return namedMods != null ? ImmutableMap.copyOf(namedMods) : ImmutableMap.of();
|
||||
}
|
||||
|
||||
public void initializeMods()
|
||||
|
|
Loading…
Reference in New Issue