From 2ca6c6d04c363040a1e6e6c105aea792c5b3bd6f Mon Sep 17 00:00:00 2001 From: Evan Date: Tue, 11 Feb 2025 21:14:59 -0800 Subject: [PATCH] fix compile error from bad merge --- src/client/HostLobbyModal.ts | 18 ------------------ src/client/SinglePlayerModal.ts | 9 --------- 2 files changed, 27 deletions(-) diff --git a/src/client/HostLobbyModal.ts b/src/client/HostLobbyModal.ts index 45561bbe8..784e19562 100644 --- a/src/client/HostLobbyModal.ts +++ b/src/client/HostLobbyModal.ts @@ -475,24 +475,6 @@ export class HostLobbyModal extends LitElement { this.putGameConfig(); } - private async handleDisableBotsChange(e: Event) { - this.disableBots = Boolean((e.target as HTMLInputElement).checked); - consolex.log(`updating disable bots to ${this.disableBots}`); - this.putGameConfig(); - } - - private async handleDisableNPCsChange(e: Event) { - this.disableNPCs = Boolean((e.target as HTMLInputElement).checked); - consolex.log(`updating disable npcs to ${this.disableNPCs}`); - this.putGameConfig(); - } - - private async handleCreativeModeChange(e: Event) { - this.creativeMode = Boolean((e.target as HTMLInputElement).checked); - consolex.log(`updating creative mode to ${this.creativeMode}`); - this.putGameConfig(); - } - private async putGameConfig() { const response = await fetch(`/private_lobby/${this.lobbyId}`, { method: "PUT", diff --git a/src/client/SinglePlayerModal.ts b/src/client/SinglePlayerModal.ts index 176f2e67e..814350fc1 100644 --- a/src/client/SinglePlayerModal.ts +++ b/src/client/SinglePlayerModal.ts @@ -333,15 +333,6 @@ export class SinglePlayerModal extends LitElement { private handleCreativeModeChange(e: Event) { this.creativeMode = Boolean((e.target as HTMLInputElement).checked); } - private handleDisableBotsChange(e: Event) { - this.disableBots = Boolean((e.target as HTMLInputElement).checked); - } - private handleDisableNPCsChange(e: Event) { - this.disableNPCs = Boolean((e.target as HTMLInputElement).checked); - } - private handleCreativeModeChange(e: Event) { - this.creativeMode = Boolean((e.target as HTMLInputElement).checked); - } private startGame() { consolex.log( `Starting single player game with map: ${GameMapType[this.selectedMap]}`