From cf0e53c412c388a5b306fcdfc790057bbc39402c Mon Sep 17 00:00:00 2001 From: Restart2008 Date: Thu, 25 Dec 2025 09:47:36 -0800 Subject: [PATCH] add measure to prevent lobby creator from kicking themselves out of the game --- src/client/graphics/layers/PlayerPanel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/graphics/layers/PlayerPanel.ts b/src/client/graphics/layers/PlayerPanel.ts index 6ece2050e..ab95ac44d 100644 --- a/src/client/graphics/layers/PlayerPanel.ts +++ b/src/client/graphics/layers/PlayerPanel.ts @@ -732,7 +732,7 @@ export class PlayerPanel extends LitElement implements Layer { type: "indigo", }) : ""} - ${canKick + ${canKick && !this.g.isLobbyCreator(other) ? actionButton({ onClick: (e: MouseEvent) => this.handleKickClick(e, other), icon: disabledIcon,