From a1e14e5610dcee787688b0cea141f17c3f2fecb5 Mon Sep 17 00:00:00 2001 From: Lenni0451 <20379977+Lenni0451@users.noreply.github.com> Date: Fri, 15 Sep 2023 17:19:51 +0200 Subject: [PATCH] Fixed compile error --- src/main/java/net/raphimc/viaproxy/util/URLClassProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/raphimc/viaproxy/util/URLClassProvider.java b/src/main/java/net/raphimc/viaproxy/util/URLClassProvider.java index f19de0f..d8056cb 100644 --- a/src/main/java/net/raphimc/viaproxy/util/URLClassProvider.java +++ b/src/main/java/net/raphimc/viaproxy/util/URLClassProvider.java @@ -39,7 +39,7 @@ public class URLClassProvider implements IClassProvider { } @Override - public byte[] getClass(String name) { + public byte[] getClass(String name) throws ClassNotFoundException { for (URL url : this.urls) { try (InputStream is = new URL("jar:" + url + "!/" + ASMUtils.slash(name) + ".class").openStream()) { return IOUtils.toByteArray(is);