add measure to prevent lobby creator from kicking themselves out of the game

This commit is contained in:
Restart2008
2025-12-25 09:47:36 -08:00
parent 5c0f5abc18
commit cf0e53c412
+1 -1
View File
@@ -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,