mirror of
https://github.com/yairm210/Unciv.git
synced 2025-03-09 20:29:50 +07:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
71220c5bfd
@ -72,8 +72,13 @@ internal object ImagePacker {
|
|||||||
val modDirectory = File("mods")
|
val modDirectory = File("mods")
|
||||||
if (modDirectory.exists()) {
|
if (modDirectory.exists()) {
|
||||||
for (mod in modDirectory.listFiles()!!) {
|
for (mod in modDirectory.listFiles()!!) {
|
||||||
if (!mod.isHidden && File(mod.path + "/Images").exists())
|
if (!mod.isHidden && File(mod.path + "/Images").exists()) {
|
||||||
packImagesIfOutdated(defaultSettings, mod.path + "/Images", mod.path, "game")
|
try {
|
||||||
|
packImagesIfOutdated(defaultSettings, mod.path + "/Images", mod.path, "game")
|
||||||
|
} catch (ex: Throwable) {
|
||||||
|
println("Exception in ImagePacker: ${ex.message}")
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user