aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);
}