Files in the mod folder no longer crash the game on startup

This commit is contained in:
Yair Morgenstern 2020-10-08 15:33:55 +03:00
parent da328c0408
commit 36ed648621

View File

@ -231,6 +231,7 @@ object RulesetCache :HashMap<String,Ruleset>() {
for (modFolder in modsHandles) {
if (modFolder.name().startsWith('.')) continue
if (!modFolder.isDirectory) continue
try {
val modRuleset = Ruleset()
modRuleset.load(modFolder.child("jsons"), printOutput)