diff options
author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2024-08-31 20:57:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-31 20:57:26 +0200 |
commit | 79602bf7761cb51efcff4ccb1c1d13bed5742fd1 (patch) | |
tree | 11ae98c178d9788a18e58605846444b6284e50d7 /src/main/java/at/hannibal2/skyhanni/mixins/init | |
parent | bf8722e892f9669bdf316d483da538d212398b23 (diff) | |
download | skyhanni-79602bf7761cb51efcff4ccb1c1d13bed5742fd1.tar.gz skyhanni-79602bf7761cb51efcff4ccb1c1d13bed5742fd1.tar.bz2 skyhanni-79602bf7761cb51efcff4ccb1c1d13bed5742fd1.zip |
Fix: ! Crash (#2427)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/mixins/init')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/mixins/init/SkyhanniMixinPlugin.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/mixins/init/SkyhanniMixinPlugin.java b/src/main/java/at/hannibal2/skyhanni/mixins/init/SkyhanniMixinPlugin.java index 9dd4cc6f8..4032f647a 100644 --- a/src/main/java/at/hannibal2/skyhanni/mixins/init/SkyhanniMixinPlugin.java +++ b/src/main/java/at/hannibal2/skyhanni/mixins/init/SkyhanniMixinPlugin.java @@ -44,7 +44,7 @@ public class SkyhanniMixinPlugin implements IMixinConfigPlugin { String string = classUrl.toString(); if (classUrl.getProtocol().equals("jar")) { try { - return new URL(string.substring(4).split("!")[0]); + return new URL(string.substring(4, string.lastIndexOf('!'))); } catch (MalformedURLException e) { throw new RuntimeException(e); } |