Skip to content

Commit

Permalink
Fix loading texture self-healing not working if its a json-syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
TBlueF committed Jan 4, 2024
1 parent e62919f commit 6ce32c5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -110,7 +111,7 @@ public static TextureGallery readTexturesFile(InputStream in) throws IOException
gallery.textureMappings.put(texture.getResourcePath(), new TextureMapping(ordinal, texture));
}
}
} catch (JsonIOException ex) {
} catch (JsonParseException ex) {
throw new IOException(ex);
}
return gallery;
Expand Down

0 comments on commit 6ce32c5

Please sign in to comment.