mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-12-25 01:57:53 +01:00
Proper error catching (regarding Quilt)
When the mod is loaded by quilt and you try to get the path using this method an IllegalArgumentException is thrown, I think that quilt is not loading the mod as a file so this is why you are getting this error.
This commit is contained in:
parent
85012ae478
commit
b97d5045b6
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user