aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0093-remove-null-possibility-for-getServer-singleton.patch
diff options
context:
space:
mode:
authorJason <[email protected]>2023-03-27 10:19:23 -0700
committerGitHub <[email protected]>2023-03-27 10:19:23 -0700
commitbd62f2c2dd5ddb3d988f6c5bf227e02b655ca41c (patch)
tree9c4f7358f8855ee2dcf686fb4d9fa8f69e23a518 /patches/server/0093-remove-null-possibility-for-getServer-singleton.patch
parentfbf74ba0ac016c408bbec28e7da317b68a81e2e1 (diff)
downloadPaper-bd62f2c2dd5ddb3d988f6c5bf227e02b655ca41c.tar.gz
Paper-bd62f2c2dd5ddb3d988f6c5bf227e02b655ca41c.zip
Fix chat messages being logged without formatting to console (#9058)
Diffstat (limited to 'patches/server/0093-remove-null-possibility-for-getServer-singleton.patch')
-rw-r--r--patches/server/0093-remove-null-possibility-for-getServer-singleton.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/patches/server/0093-remove-null-possibility-for-getServer-singleton.patch b/patches/server/0093-remove-null-possibility-for-getServer-singleton.patch
index 116eb2b256..ab152eca5e 100644
--- a/patches/server/0093-remove-null-possibility-for-getServer-singleton.patch
+++ b/patches/server/0093-remove-null-possibility-for-getServer-singleton.patch
@@ -6,7 +6,7 @@ Subject: [PATCH] remove null possibility for getServer singleton
to stop IDE complaining about potential NPE
diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java
-index 18499be3d671987a743e6001347fb7ffb023039c..0cb581700dd994a0585e5f8f73489d90f2c0ac0d 100644
+index 2ea0cb1f9bfc5ef7bd8c78cf259da13b11fe4023..e2744847c5decc65be2f8d268457ba80633b8e29 100644
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java
@@ -193,6 +193,7 @@ import co.aikar.timings.MinecraftTimings; // Paper
@@ -15,9 +15,9 @@ index 18499be3d671987a743e6001347fb7ffb023039c..0cb581700dd994a0585e5f8f73489d90
+ private static MinecraftServer SERVER; // Paper
public static final Logger LOGGER = LogUtils.getLogger();
+ public static final net.kyori.adventure.text.logger.slf4j.ComponentLogger COMPONENT_LOGGER = net.kyori.adventure.text.logger.slf4j.ComponentLogger.logger(LOGGER.getName()); // Paper
public static final String VANILLA_BRAND = "vanilla";
- private static final float AVERAGE_TICK_TIME_SMOOTHING = 0.8F;
-@@ -321,6 +322,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa
+@@ -322,6 +323,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa
public MinecraftServer(OptionSet options, WorldLoader.DataLoadContext worldLoader, Thread thread, LevelStorageSource.LevelStorageAccess convertable_conversionsession, PackRepository resourcepackrepository, WorldStem worldstem, Proxy proxy, DataFixer datafixer, Services services, ChunkProgressListenerFactory worldloadlistenerfactory) {
super("Server");
@@ -25,7 +25,7 @@ index 18499be3d671987a743e6001347fb7ffb023039c..0cb581700dd994a0585e5f8f73489d90
this.metricsRecorder = InactiveMetricsRecorder.INSTANCE;
this.profiler = this.metricsRecorder.getProfiler();
this.onMetricsRecordingStopped = (methodprofilerresults) -> {
-@@ -2333,9 +2335,8 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa
+@@ -2334,9 +2336,8 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa
return false;
}