From 2008ba2d54bb016aa09df8bab2600567aa710f43 Mon Sep 17 00:00:00 2001 From: AlphaKR93 Date: Thu, 11 Jan 2024 00:15:26 +0900 Subject: [PATCH] Fix build, again --- patches/server/0038-Fix-build.patch | 34 +++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/patches/server/0038-Fix-build.patch b/patches/server/0038-Fix-build.patch index db43c3a..e8efa31 100644 --- a/patches/server/0038-Fix-build.patch +++ b/patches/server/0038-Fix-build.patch @@ -35,3 +35,37 @@ index 935dac757280731bfeb0a8f033cbe315ecac46da..038f370ac2cb768e14fe7605b32b2ac8 } +diff --git a/src/main/java/net/minecraft/server/players/StoredUserList.java b/src/main/java/net/minecraft/server/players/StoredUserList.java +index b3d4f579fab96f572811ed0e33ecbb5204475391..a35340b9231bc3009ca9449fa6ea8f8ae6929146 100644 +--- a/src/main/java/net/minecraft/server/players/StoredUserList.java ++++ b/src/main/java/net/minecraft/server/players/StoredUserList.java +@@ -61,11 +61,11 @@ public abstract class StoredUserList> { + public void add(V entry) { + this.map.put(this.getKeyForUser(entry.getUser()), entry); + +- try { ++ //try { // Plazma - Fix build + this.save(); +- } catch (IOException ioexception) { ++ /*} catch (IOException ioexception) { // Plazma - Fix build + StoredUserList.LOGGER.warn("Could not save the list after adding a user.", ioexception); +- } ++ }*/ // Plazma - Fix build + + } + +@@ -83,11 +83,11 @@ public abstract class StoredUserList> { + public void remove(K key) { + this.map.remove(this.getKeyForUser(key)); + +- try { ++ //try { // Plazma - Fix build + this.save(); +- } catch (IOException ioexception) { ++ /*} catch (IOException ioexception) { // Plazma - Fix build + StoredUserList.LOGGER.warn("Could not save the list after removing a user.", ioexception); +- } ++ }*/ // Plazma - Fix build + + } +