extra npe when world fails to load anyways.

This commit is contained in:
gnembon committed 2020-03-15 02:41:06 -03:00
1 parent 493cea2c13
commit c0e72fe669
1 file changed
+1 -1
+1 -1
View File
@@ -112,7 +112,7 @@ public class CarpetServer // static for now - easier to handle all around the co
public static void onServerClosed(MinecraftServer server)
{
currentCommandDispatcher = null;
scriptServer.onClose();
if (scriptServer != null) scriptServer.onClose();
settingsManager.detachServer();
LoggerRegistry.stopLoggers();
extensions.forEach(e -> e.onServerClosed(server));