Skip to content

Commit

Permalink
Avoid creating runDir on the IPC client (it's running in it)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaming32 committed Oct 25, 2023
1 parent 8f3eae5 commit fe20d25
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ public class ActualLoadingScreen {
public static void startLoadingScreen(boolean fabricReady) {
final Path gameDir = fabricReady ? FabricLoader.getInstance().getGameDir() : Paths.get(".").toAbsolutePath();
final Path runDir = gameDir.resolve(".cache/mod-loading-screen");
try {
Files.createDirectories(runDir);
} catch (IOException e) {
println("Failed to create runDir", e);
}

if (!IS_IPC_CLIENT) {
try {
Files.createDirectories(runDir);
} catch (IOException e) {
println("Failed to create runDir", e);
}
try {
logFile = new PrintStream(Files.newOutputStream(runDir.resolve(ENABLE_IPC ? "ipc-server-log.txt" : "screen-log.txt")));
} catch (IOException e) {
Expand Down

0 comments on commit fe20d25

Please sign in to comment.