mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-04 15:27:50 +07:00
Files in the mod folder no longer crash the game on startup
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user