Fix instanceManager and overworld loading

This commit is contained in:
Ninjdai 2024-09-30 16:43:34 +02:00
parent 028f816598
commit 4bfcfb2edd

View File

@ -19,12 +19,15 @@ import org.slf4j.LoggerFactory;
public class Main { public class Main {
public static final Logger LOGGER = LoggerFactory.getLogger("Playground"); public static final Logger LOGGER = LoggerFactory.getLogger("Playground");
public static final InstanceManager instanceManager = MinecraftServer.getInstanceManager(); public static InstanceManager instanceManager;
public static final InstanceContainer overworld = instanceManager.createInstanceContainer(); public static InstanceContainer overworld;
public static void main(String[] args) { public static void main(String[] args) {
MinecraftServer minecraftServer = MinecraftServer.init(); MinecraftServer minecraftServer = MinecraftServer.init();
instanceManager = MinecraftServer.getInstanceManager();
overworld = instanceManager.createInstanceContainer();
//VanillaReimplementation vri = VanillaReimplementation.hook(MinecraftServer.process()); //VanillaReimplementation vri = VanillaReimplementation.hook(MinecraftServer.process());
overworld.setGenerator(LGGenerator::generate); overworld.setGenerator(LGGenerator::generate);