From 4bfcfb2edd3f8ec4e7241013b0d1544fab496766 Mon Sep 17 00:00:00 2001 From: Ninjdai Date: Mon, 30 Sep 2024 16:43:34 +0200 Subject: [PATCH] Fix instanceManager and overworld loading --- src/main/java/dev/ninjdai/werewolf/Main.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/dev/ninjdai/werewolf/Main.java b/src/main/java/dev/ninjdai/werewolf/Main.java index 0ebfaec..6d8e87e 100644 --- a/src/main/java/dev/ninjdai/werewolf/Main.java +++ b/src/main/java/dev/ninjdai/werewolf/Main.java @@ -19,12 +19,15 @@ import org.slf4j.LoggerFactory; public class Main { public static final Logger LOGGER = LoggerFactory.getLogger("Playground"); - public static final InstanceManager instanceManager = MinecraftServer.getInstanceManager(); - public static final InstanceContainer overworld = instanceManager.createInstanceContainer(); + public static InstanceManager instanceManager; + public static InstanceContainer overworld; public static void main(String[] args) { MinecraftServer minecraftServer = MinecraftServer.init(); + instanceManager = MinecraftServer.getInstanceManager(); + overworld = instanceManager.createInstanceContainer(); + //VanillaReimplementation vri = VanillaReimplementation.hook(MinecraftServer.process()); overworld.setGenerator(LGGenerator::generate);