From 6ce32c56dc67eeaac13ff56e2b71ad9e31df1a0e Mon Sep 17 00:00:00 2001 From: "Lukas Rieger (Blue)" Date: Thu, 4 Jan 2024 17:19:34 +0100 Subject: [PATCH] Fix loading texture self-healing not working if its a json-syntax error --- .../java/de/bluecolored/bluemap/core/map/TextureGallery.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/map/TextureGallery.java b/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/map/TextureGallery.java index 5ee4a6b0..7e76f3c6 100644 --- a/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/map/TextureGallery.java +++ b/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/map/TextureGallery.java @@ -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;