mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-06 00:09:23 +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) {
|
for (modFolder in modsHandles) {
|
||||||
if (modFolder.name().startsWith('.')) continue
|
if (modFolder.name().startsWith('.')) continue
|
||||||
|
if (!modFolder.isDirectory) continue
|
||||||
try {
|
try {
|
||||||
val modRuleset = Ruleset()
|
val modRuleset = Ruleset()
|
||||||
modRuleset.load(modFolder.child("jsons"), printOutput)
|
modRuleset.load(modFolder.child("jsons"), printOutput)
|
||||||
|
Reference in New Issue
Block a user