aboutsummaryrefslogtreecommitdiff
path: root/webAO/client/fixLastArea.ts
blob: 839b14cced8e60587ee0f38b39d77ec33060bb5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { client } from "../client";
import { renderAreaList } from "../dom/renderAreaList";
import { addTrack } from "./addTrack";

/**
 * Area list fuckery
 */
export const fix_last_area = () => {
  if (client.areas.length > 0) {
    const malplaced = client.areas.pop().name;
    renderAreaList();
    addTrack(malplaced);
  }
};