Dediserver runs and talks to clients.

This commit is contained in:
cpw authored and LexManos committed 2018-09-05 12:35:31 -07:00
1 parent 506b51f189
commit 689ebd8036
31 files changed
+605 -324

No files matched your search

@@ -51,6 +51,7 @@ public class ServerLifecycleHooks
public static boolean handleServerAboutToStart(final MinecraftServer server)
{
currentServer = server;
LogicalSidedProvider.setServer(()->server);
return !MinecraftForge.EVENT_BUS.post(new FMLServerAboutToStartEvent(server));
}
@@ -80,6 +81,7 @@ public class ServerLifecycleHooks
{
MinecraftForge.EVENT_BUS.post(new FMLServerStoppedEvent());
currentServer = null;
LogicalSidedProvider.setServer(null);
CountDownLatch latch = exitLatch;
if (latch != null)