mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 22:06:05 -04:00
Prevent packaged exe being shot down by mod atlas packing failures (#5169)
This commit is contained in:
parent
19837c235a
commit
e575399baa
@ -72,8 +72,13 @@ internal object ImagePacker {
|
||||
val modDirectory = File("mods")
|
||||
if (modDirectory.exists()) {
|
||||
for (mod in modDirectory.listFiles()!!) {
|
||||
if (!mod.isHidden && File(mod.path + "/Images").exists())
|
||||
packImagesIfOutdated(defaultSettings, mod.path + "/Images", mod.path, "game")
|
||||
if (!mod.isHidden && File(mod.path + "/Images").exists()) {
|
||||
try {
|
||||
packImagesIfOutdated(defaultSettings, mod.path + "/Images", mod.path, "game")
|
||||
} catch (ex: Throwable) {
|
||||
println("Exception in ImagePacker: ${ex.message}")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user