mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-03 01:10:37 +01:00
0915495113
Fixes a race condition when using TerminalConsoleAppender that may result in IllegalStateExceptions or duplicate input prompts.
22 lines
993 B
Diff
22 lines
993 B
Diff
From 0178b17d09c4e8e5d7c4cf65953b2fb44d23ae24 Mon Sep 17 00:00:00 2001
|
|
From: Kyle Wood <demonwav@gmail.com>
|
|
Date: Thu, 1 Mar 2018 19:38:14 -0600
|
|
Subject: [PATCH] Load version history at server start
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/DedicatedServer.java b/src/main/java/net/minecraft/server/DedicatedServer.java
|
|
index 18d32ab76..292291592 100644
|
|
--- a/src/main/java/net/minecraft/server/DedicatedServer.java
|
|
+++ b/src/main/java/net/minecraft/server/DedicatedServer.java
|
|
@@ -199,6 +199,7 @@ public class DedicatedServer extends MinecraftServer implements IMinecraftServer
|
|
// Paper start
|
|
com.destroystokyo.paper.PaperConfig.init((File) options.valueOf("paper-settings"));
|
|
com.destroystokyo.paper.PaperConfig.registerCommands();
|
|
+ com.destroystokyo.paper.VersionHistoryManager.INSTANCE.getClass(); // load version history now
|
|
// Paper end
|
|
|
|
DedicatedServer.LOGGER.info("Generating keypair");
|
|
--
|
|
2.18.0
|
|
|