From 43732f22e3151f133c9501830aea07ceddefaa82 Mon Sep 17 00:00:00 2001 From: RaphiMC <50594595+RaphiMC@users.noreply.github.com> Date: Sat, 20 Apr 2024 17:15:12 +0200 Subject: [PATCH] Create jars folder on startup --- .../net/raphimc/viaproxy/util/ClassLoaderPriorityUtil.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/net/raphimc/viaproxy/util/ClassLoaderPriorityUtil.java b/src/main/java/net/raphimc/viaproxy/util/ClassLoaderPriorityUtil.java index 18bbd35..78fce68 100644 --- a/src/main/java/net/raphimc/viaproxy/util/ClassLoaderPriorityUtil.java +++ b/src/main/java/net/raphimc/viaproxy/util/ClassLoaderPriorityUtil.java @@ -26,6 +26,11 @@ public class ClassLoaderPriorityUtil { public static void loadOverridingJars() { final File jarsFolder = new File("jars"); + if (!jarsFolder.exists()) { + jarsFolder.mkdir(); + return; + } + if (jarsFolder.isDirectory()) { for (File file : jarsFolder.listFiles()) { try {