Create jars folder on startup

This commit is contained in:
RaphiMC 2024-04-20 17:15:12 +02:00
parent 5924dd29b8
commit 43732f22e3
No known key found for this signature in database
GPG Key ID: 0F6BB0657A03AC94
1 changed files with 5 additions and 0 deletions

View File

@ -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 {