Fix NPE problem when modid is mismatched.

Signed-off-by: cpw <[email protected]>
This commit is contained in:
cpw committed 2020-11-13 20:41:20 -05:00
1 parent 4a09a2420d
commit 0c5ced1bbf
2 files changed
+16 -5

No files matched your search

@@ -75,6 +75,16 @@ public abstract class ModContainer
(incoming, isNetwork)->Objects.equals(incoming, this.modInfo.getVersion().toString())));
}
/**
* Errored container state, used for filtering. Does nothing.
*/
ModContainer()
{
this.modLoadingStage = ModLoadingStage.ERROR;
modId = "BROKEN";
namespace = "BROKEN";
modInfo = null;
}
/**
* @return the modid for this mod
*/