Fix crash with PermissionsAPI (#8330)

Fixes a crash in singleplayer, when the internal server didn't shut down correctly between world loads.
This commit is contained in:
JTK222 authored and GitHub committed 2022-01-02 18:43:07 +00:00
1 parent 7259887176
commit 335cb5edc4
2 files changed
+13 -16

No files matched your search

@@ -111,7 +111,6 @@ public class ServerLifecycleHooks
public static void handleServerStopping(final MinecraftServer server)
{
allowLogins.set(false);
PermissionAPI.resetPermissionAPI();
MinecraftForge.EVENT_BUS.post(new ServerStoppingEvent(server));
}