Skip to content

Commit

Permalink
Update for 2.14.0-beta.dev.20240918.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Spacetech committed Sep 18, 2024
1 parent 223af37 commit a89a12a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"watch": "npx tsc --build --watch --pretty --preserveWatchOutput"
},
"devDependencies": {
"@wayward/types": "^2.14.0-beta.dev.20240917.1",
"@wayward/types": "^2.14.0-beta.dev.20240918.1",
"rimraf": "3.0.2",
"typescript": "^5.6.2"
}
Expand Down
4 changes: 2 additions & 2 deletions src/ui/DebugToolsDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { MenuBarButtonType } from "@wayward/game/ui/screen/screens/game/static/m
import Vector2 from "@wayward/game/utilities/math/Vector2";
import { Tuple } from "@wayward/utilities/collection/Tuple";
import { OwnEventHandler } from "@wayward/utilities/event/EventManager";
import { yieldTask } from "@wayward/utilities/promise/Async";
import DebugTools from "../DebugTools";
import { DEBUG_TOOLS_ID, DebugToolsTranslation, translation } from "../IDebugTools";
import DebugToolsPanel from "./component/DebugToolsPanel";
Expand All @@ -21,6 +20,7 @@ import SelectionPanel from "./panel/SelectionPanel";
import TemperaturePanel from "./panel/TemperaturePanel";
import TemplatePanel from "./panel/TemplatePanel";
import ZonesPanel from "./panel/ZonesPanel";
import Task from "@wayward/utilities/promise/Task";

export type DebugToolsDialogPanelClass = new () => DebugToolsPanel;

Expand Down Expand Up @@ -63,7 +63,7 @@ export default class DebugToolsDialog extends TabDialog<DebugToolsPanel> {
this.classes.add("debug-tools-dialog");

if (!this.DEBUG_TOOLS.hasPermission()) {
yieldTask().then(() => gameScreen?.dialogs.close(id));
Task.yield().then(() => gameScreen?.dialogs.close(id));
}
}

Expand Down

0 comments on commit a89a12a

Please sign in to comment.