Merge pull request #4017 from MuriloGhignatti/patch-1

Proper error catching (regarding Quilt)
This commit is contained in:
mikeprimm 2023-09-23 18:07:13 -05:00 committed by GitHub
commit ff87b9dd3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,7 @@ public class DynmapMod implements ModInitializer {
Path path = MOD_CONTAINER.getRootPath();
try {
jarfile = new File(DynmapCore.class.getProtectionDomain().getCodeSource().getLocation().toURI());
} catch (URISyntaxException e) {
} catch (URISyntaxException | IllegalArgumentException e) {
Log.severe("Unable to get DynmapCore jar path", e);
}