From 1678e3af1d4689803e59f4e3b325f2928e37f325 Mon Sep 17 00:00:00 2001 From: TudbuT Date: Mon, 14 Oct 2024 03:41:01 +0200 Subject: [PATCH] fix reloading --- .../baseband/launcher/classloader/SimpleClassLoader.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Loader/src/main/java/de/com/baseband/launcher/classloader/SimpleClassLoader.java b/Loader/src/main/java/de/com/baseband/launcher/classloader/SimpleClassLoader.java index a06640e..7b2554d 100644 --- a/Loader/src/main/java/de/com/baseband/launcher/classloader/SimpleClassLoader.java +++ b/Loader/src/main/java/de/com/baseband/launcher/classloader/SimpleClassLoader.java @@ -2,6 +2,7 @@ package de.com.baseband.launcher.classloader; import de.com.baseband.launcher.url.URLWrapper; +import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.util.HashMap; @@ -12,6 +13,11 @@ public class SimpleClassLoader extends ClassLoader { public SimpleClassLoader(HashMap classes) { this.classes = classes; + try { + URLWrapper.wrap("_", new byte[0]).openStream().close(); + } catch (IOException e) { + e.printStackTrace(); + } } @Override