Skip to content

Commit 6d80fa0

Browse files
committed
Fixing some interface weirdness
1 parent 0aa4c6b commit 6d80fa0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/game-engine/world/action/hooks/task.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import uuidv4 from 'uuid/v4';
22
import { lastValueFrom, Subscription, timer } from 'rxjs';
33
import { Actor } from '@engine/world/actor/actor';
4-
import { ActionHook } from '@engine/world/action/hooks/index';
4+
import { ActionHook } from '@engine/world/action';
55
import { World } from '@engine/world';
66
import { logger } from '@runejs/core';
77
import { Player } from '@engine/world/actor/player/player';

src/plugins/dialogue/item-selection.plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { widgetInteractionActionHandler } from '@engine/world/action/widget-inte
55
*/
66
export const action: widgetInteractionActionHandler = (details) => {
77
const { player, widgetId, childId } = details;
8-
player.interfaceState.closeWidget(widgetId, childId);
8+
player.interfaceState.closeWidget('chatbox', widgetId, childId);
99
};
1010

1111
export default {

src/plugins/skills/level-up-dialogue.plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const widgetIds = [
1414
* Handles a level-up dialogue action.
1515
*/
1616
export const handler: widgetInteractionActionHandler = ({ player }) =>
17-
player.interfaceState.closeChatOverlayWidget();
17+
player.interfaceState.closeWidget('chatbox');
1818

1919
export default {
2020
pluginId: 'rs:close_level_up_message',

0 commit comments

Comments
 (0)