mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-29 15:01:09 -04: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) {
|
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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user