More progress
This commit is contained in:
@@ -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 b4eb53f28a..fbad6a31c1 100644
|
||||
index 696cab131..2a40bb0b8 100644
|
||||
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
|
||||
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java
|
||||
@@ -0,0 +0,0 @@ import org.spigotmc.SlackActivityAccountant; // Spigot
|
||||
@@ -23,8 +23,8 @@ index b4eb53f28a..fbad6a31c1 100644
|
||||
this.ae = new ResourceManager(EnumResourcePackType.SERVER_DATA, this.serverThread);
|
||||
+ SERVER = this; // Paper - better singleton
|
||||
this.resourcePackRepository = new ResourcePackRepository<>(ResourcePackLoader::new);
|
||||
this.ai = new CraftingManager();
|
||||
this.aj = new TagRegistry();
|
||||
this.craftingManager = new CraftingManager();
|
||||
this.tagRegistry = new TagRegistry();
|
||||
@@ -0,0 +0,0 @@ public abstract class MinecraftServer extends IAsyncTaskHandlerReentrant<TickTas
|
||||
|
||||
@Deprecated
|
||||
|
||||
Reference in New Issue
Block a user