From 36ed6486212ab3968e07aaa4c39c04e68d853b82 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Thu, 8 Oct 2020 15:33:55 +0300 Subject: [PATCH] Files in the mod folder no longer crash the game on startup --- core/src/com/unciv/models/ruleset/Ruleset.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/com/unciv/models/ruleset/Ruleset.kt b/core/src/com/unciv/models/ruleset/Ruleset.kt index 091dc9f6ce..2544fc206a 100644 --- a/core/src/com/unciv/models/ruleset/Ruleset.kt +++ b/core/src/com/unciv/models/ruleset/Ruleset.kt @@ -231,6 +231,7 @@ object RulesetCache :HashMap() { for (modFolder in modsHandles) { if (modFolder.name().startsWith('.')) continue + if (!modFolder.isDirectory) continue try { val modRuleset = Ruleset() modRuleset.load(modFolder.child("jsons"), printOutput)