28 lines
1.1 KiB
Diff
28 lines
1.1 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Chaoscaot <chaos@chaoscaot.de>
|
|
Date: Wed, 25 Dec 2024 12:36:40 +0100
|
|
Subject: [PATCH] SW Remove Debug Message
|
|
|
|
|
|
diff --git a/net/minecraft/server/players/StoredUserList.java b/net/minecraft/server/players/StoredUserList.java
|
|
index d445e8f126f077d8419c52fa5436ea963a1a42a4..dfb0d766b5244646d18ddec5d8b91eddb69d9e97 100644
|
|
--- a/net/minecraft/server/players/StoredUserList.java
|
|
+++ b/net/minecraft/server/players/StoredUserList.java
|
|
@@ -12,6 +12,7 @@ import com.mojang.logging.LogUtils;
|
|
import java.io.BufferedReader;
|
|
import java.io.BufferedWriter;
|
|
import java.io.File;
|
|
+import java.io.FileNotFoundException;
|
|
import java.io.IOException;
|
|
import java.nio.charset.StandardCharsets;
|
|
import java.util.Collection;
|
|
@@ -103,6 +104,8 @@ public abstract class StoredUserList<K, V extends StoredUserEntry<K>> {
|
|
|
|
try (BufferedWriter writer = Files.newWriter(this.file, StandardCharsets.UTF_8)) {
|
|
GSON.toJson(jsonArray, GSON.newJsonWriter(writer));
|
|
+ } catch (FileNotFoundException e) {
|
|
+ return;
|
|
}
|
|
}
|
|
|