Skip to content

Commit a543d5f

Browse files
committed
Update for 2.15.2-beta.dev.20251207.1
1 parent 978598f commit a543d5f

60 files changed

Lines changed: 255 additions & 507 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"watch": "npx tsc --build --watch --pretty --preserveWatchOutput"
1111
},
1212
"devDependencies": {
13-
"@wayward/types": "^2.15.2-beta.dev.20251205.1",
13+
"@wayward/types": "^2.15.2-beta.dev.20251207.1",
1414
"typescript": "^5.9.2"
1515
}
1616
}

src/Actions.ts

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,15 @@
11
import type { IActionHandlerApi } from "@wayward/game/game/entity/action/IAction";
22
import Mod from "@wayward/game/mod/Mod";
3-
import type Log from "@wayward/utilities/Log";
4-
import type DebugTools from "./DebugTools";
5-
import { DEBUG_TOOLS_ID } from "./IDebugTools";
63
import type Human from "@wayward/game/game/entity/Human";
4+
import type DebugToolsMod from "./DebugTools";
5+
6+
const DebugTools = Mod.get<DebugToolsMod>();
77

88
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
99
export const defaultCanUseHandler = (action: IActionHandlerApi<Human>) => {
10-
if (!Actions.DEBUG_TOOLS.hasPermission(action.executor.asPlayer)) {
10+
if (!DebugTools?.instance?.hasPermission(action.executor.asPlayer)) {
1111
return { usable: false };
1212
}
1313

1414
return { usable: true };
1515
};
16-
17-
// eslint-disable-next-line @typescript-eslint/no-extraneous-class
18-
export default class Actions {
19-
@Mod.instance<DebugTools>(DEBUG_TOOLS_ID)
20-
public static readonly DEBUG_TOOLS: DebugTools;
21-
@Mod.log(DEBUG_TOOLS_ID)
22-
public static readonly LOG: Log;
23-
}

0 commit comments

Comments
 (0)