Fix loading texture self-healing not working if its a json-syntax error

This commit is contained in:
Lukas Rieger (Blue) 2024-01-04 17:19:34 +01:00
parent e62919f14f
commit 6ce32c56dc
No known key found for this signature in database
GPG Key ID: 2D09EC5ED2687FF2
1 changed files with 2 additions and 1 deletions

View File

@ -25,6 +25,7 @@
package de.bluecolored.bluemap.core.map;
import com.google.gson.JsonIOException;
import com.google.gson.JsonParseException;
import de.bluecolored.bluemap.api.debug.DebugDump;
import de.bluecolored.bluemap.core.resources.ResourcePath;
import de.bluecolored.bluemap.core.resources.adapter.ResourcesGson;
@ -110,7 +111,7 @@ public class TextureGallery {
gallery.textureMappings.put(texture.getResourcePath(), new TextureMapping(ordinal, texture));
}
}
} catch (JsonIOException ex) {
} catch (JsonParseException ex) {
throw new IOException(ex);
}
return gallery;