aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-08-31 20:57:26 +0200
committerGitHub <noreply@github.com>2024-08-31 20:57:26 +0200
commit79602bf7761cb51efcff4ccb1c1d13bed5742fd1 (patch)
tree11ae98c178d9788a18e58605846444b6284e50d7 /src/main
parentbf8722e892f9669bdf316d483da538d212398b23 (diff)
downloadskyhanni-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')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/mixins/init/SkyhanniMixinPlugin.java2
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);
}