Announce already here for no-op list teleports
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// Maintainer-controlled web client version.
|
||||
// Format: YYYY.MM.DD Rn (example: 2026.02.20 R2)
|
||||
window.CHGRID_WEB_VERSION = "2026.02.21 R96";
|
||||
window.CHGRID_WEB_VERSION = "2026.02.21 R97";
|
||||
// Optional display timezone for timestamps. Falls back to America/Detroit if unset/invalid.
|
||||
window.CHGRID_TIME_ZONE = "America/Detroit";
|
||||
|
||||
@@ -1474,6 +1474,10 @@ function handleListModeInput(code: string, key: string): void {
|
||||
if (code === 'Enter') {
|
||||
const peer = state.peers.get(state.sortedPeerIds[state.listIndex]);
|
||||
if (!peer) return;
|
||||
if (state.player.x === peer.x && state.player.y === peer.y) {
|
||||
updateStatus('Already here.');
|
||||
return;
|
||||
}
|
||||
state.player.x = peer.x;
|
||||
state.player.y = peer.y;
|
||||
persistPlayerPosition();
|
||||
@@ -1530,6 +1534,10 @@ function handleListItemsModeInput(code: string, key: string): void {
|
||||
if (code === 'Enter') {
|
||||
const item = state.items.get(state.sortedItemIds[state.itemListIndex]);
|
||||
if (!item) return;
|
||||
if (state.player.x === item.x && state.player.y === item.y) {
|
||||
updateStatus('Already here.');
|
||||
return;
|
||||
}
|
||||
state.player.x = item.x;
|
||||
state.player.y = item.y;
|
||||
persistPlayerPosition();
|
||||
|
||||
Reference in New Issue
Block a user