From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: ishland Date: Wed, 27 Jan 2021 20:16:47 +0800 Subject: [PATCH] Preload ProtocolLib EnumWrappers Currently, ProtocolLib load EnumWrappers lazily and causing memory effects issues. This patch preloads EnumWrappers to prevent further NPE. diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java index 87cf9cd88d1fb5ae70d19e5618ebfb67d281304a..2a06f663ce64529842cfb0f4cf16c28ee143f110 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java @@ -959,6 +959,7 @@ public abstract class MinecraftServer extends IAsyncTaskHandlerReentrant