diff --git a/core/src/com/unciv/ui/images/ImageGetter.kt b/core/src/com/unciv/ui/images/ImageGetter.kt index 567a94fb8f..d297882b33 100644 --- a/core/src/com/unciv/ui/images/ImageGetter.kt +++ b/core/src/com/unciv/ui/images/ImageGetter.kt @@ -103,9 +103,14 @@ object ImageGetter { val extraAtlas = if (mod.isEmpty()) fileName else if (fileName == "game") mod else "$mod/$fileName" var tempAtlas = atlases[extraAtlas] // fetch if cached if (tempAtlas == null) { - debug("Loading %s = %s", extraAtlas, file.path()) - tempAtlas = TextureAtlas(file) // load if not - atlases[extraAtlas] = tempAtlas // cache the freshly loaded + try { + debug("Loading %s = %s", extraAtlas, file.path()) + tempAtlas = TextureAtlas(file) // load if not + atlases[extraAtlas] = tempAtlas // cache the freshly loaded + } catch (ex: Exception){ + debug("Could not load file $file") + continue + } } for (region in tempAtlas.regions) { if (region.name.startsWith("Skins")) {