From ac6c312ed41e6ecea1b31044d1ff75bb03f83269 Mon Sep 17 00:00:00 2001 From: zznty <94796179+zznty@users.noreply.github.com> Date: Tue, 12 Mar 2024 21:46:17 +0700 Subject: [PATCH] [FIX] Fix log4j config unpacking (#704) --- LaunchServer/src/main/java/pro/gravit/launchserver/Main.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/Main.java b/LaunchServer/src/main/java/pro/gravit/launchserver/Main.java index a4bbc556..8361e8f4 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/Main.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/Main.java @@ -37,7 +37,7 @@ private static void unpackLog4j() { Path log4jConfigPath = Path.of("log4j2.xml"); if(!Files.exists(log4jConfigPath)) { try(FileOutputStream output = new FileOutputStream(log4jConfigPath.toFile())) { - try(InputStream input = Main.class.getResourceAsStream("log4j2.xml")) { + try(InputStream input = Main.class.getResourceAsStream("/log4j2.xml")) { if(input == null) { return; }