Exemplo n.º 1
0
  private void stopMapManager() {
    if (manager != null) {
      manager.stop();
      MinecraftForge.EVENT_BUS.unregister(manager);
      FMLCommonHandler.instance().bus().unregister(manager);
    }

    if (managerThread != null) {
      managerThread.interrupt();
    }

    managerThread = null;
    manager = null;
  }
Exemplo n.º 2
0
 @Mod.EventHandler
 public void serverLoadFinish(FMLServerStartedEvent event) {
   manager.initialize();
 }