Fix instanceManager and overworld loading
This commit is contained in:
parent
028f816598
commit
4bfcfb2edd
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user