From 79602bf7761cb51efcff4ccb1c1d13bed5742fd1 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal002@users.noreply.github.com> Date: Sat, 31 Aug 2024 20:57:26 +0200 Subject: Fix: ! Crash (#2427) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .../java/at/hannibal2/skyhanni/mixins/init/SkyhanniMixinPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2/skyhanni/mixins') 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); } -- cgit