for (const move_button of document.querySelectorAll('[id*="_move_"]')) {
let direction = move_button.id.split('_')[2].toUpperCase();
move_button.onclick = function() {
- if (tui.mode.available_actions.includes("move")
- || tui.mode.available_actions.includes("move_explorer")) {
+ if (tui.mode.available_actions.includes("move")) {
server.send(['TASK:MOVE', direction]);
- } else {
+ } else if (tui.mode.available_actions.includes("move_explorer")) {
explorer.move(direction);
+ tui.full_refresh();
};
};
};