Prevent handleDisconnect after stopped server on Fabric (#4160)

This commit is contained in:
蒟蒻 authored and GitHub committed 2025-09-21 11:04:58 +01:00
1 parent a087f14aa2
commit 0b91732cd3
1 file changed
+3 -1
@@ -131,7 +131,9 @@ public class FabricConnectionListener extends AbstractConnectionListener {
}
private void onDisconnect(ServerPlayNetworkHandler netHandler, MinecraftServer server) {
handleDisconnect(netHandler.player.getUuid());
if (!server.isStopped()) {
handleDisconnect(netHandler.player.getUuid());
}
}
}