From 492640ec2af16bb017f849aef62bf27edaf684d7 Mon Sep 17 00:00:00 2001 From: zebraed <30438415+zebraed@users.noreply.github.com> Date: Wed, 10 Dec 2025 01:55:54 +0900 Subject: [PATCH] Fix location sharing button state not syncing with server --- play.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/play.js b/play.js index cf1e29c9..b7607ff4 100644 --- a/play.js +++ b/play.js @@ -930,7 +930,7 @@ document.getElementById('enterNameForm').onsubmit = function () { sendSessionCommand('pr', [ config.privateMode ? config.singleplayerMode ? 2 : 1 : 0 ]); if (config.hideLocation) { - sendSessionCommand('hl', [config.singleplayerMode ? 1 : 0 ]); + sendSessionCommand('hl', [ config.hideLocation ? 1 : 0 ]); } if (connStatus == 1 || connStatus == 3 || connStatus == 4) @@ -1287,7 +1287,7 @@ document.getElementById('hideLocationButton').onclick = function () { this.classList.toggle('toggled', config.hideLocation); updateConfig(config); - if (sessionWs && config.singleplayerMode) + if (sessionWs) sendSessionCommand('hl', [ config.hideLocation ? 1 : 0 ]); };