aboutsummaryrefslogtreecommitdiff
path: root/webAO/dom/areaClick.ts
diff options
context:
space:
mode:
Diffstat (limited to 'webAO/dom/areaClick.ts')
-rw-r--r--webAO/dom/areaClick.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/webAO/dom/areaClick.ts b/webAO/dom/areaClick.ts
index 1e41f4b..27682c7 100644
--- a/webAO/dom/areaClick.ts
+++ b/webAO/dom/areaClick.ts
@@ -1,5 +1,5 @@
import { client } from "../client";
-import { updatePlayerAreas } from "./updatePlayerAreas";
+import { renderPlayerList } from "./renderPlayerList";
/**
* Triggered when an item on the area list is clicked.
* @param {HTMLElement} el
@@ -13,6 +13,6 @@ export function area_click(el: HTMLElement) {
areaHr.textContent = `switched to ${el.textContent}`;
document.getElementById("client_log")!.appendChild(areaHr);
client.area = Number(el.id.substring(4));
- updatePlayerAreas(client.area);
+ renderPlayerList();
}
window.area_click = area_click;