mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 00:07:45 +00:00
Dediserver runs and talks to clients.
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user