mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-11 03:18:18 +07:00
Files in the mod folder no longer crash the game on startup
This commit is contained in:
parent
da328c0408
commit
36ed648621
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user