Skip to content

Commit 752c645

Browse files
committed
Update for 2.14.0-beta.dev.20241128.1
1 parent 2adb54a commit 752c645

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

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.14.0-beta.dev.20241126.1",
13+
"@wayward/types": "^2.14.0-beta.dev.20241127.1",
1414
"rimraf": "3.0.2",
1515
"typescript": "^5.7.2"
1616
}

src/action/helpers/RemoveItem.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { IActionApi } from "@wayward/game/game/entity/action/IAction";
2-
import Entity from "@wayward/game/game/entity/Entity";
3-
import Item from "@wayward/game/game/item/Item";
1+
import type { IActionApi } from "@wayward/game/game/entity/action/IAction";
2+
import type Entity from "@wayward/game/game/entity/Entity";
3+
import type Item from "@wayward/game/game/item/Item";
44
import InspectDialog from "../../ui/InspectDialog";
5-
import Human from "@wayward/game/game/entity/Human";
5+
import type Human from "@wayward/game/game/entity/Human";
66

77
export default function (action: IActionApi<Human>, item: Item): void {
88
const container = item.containedWithin;
@@ -14,7 +14,7 @@ export default function (action: IActionApi<Human>, item: Item): void {
1414

1515
} else if ("entityType" in container) {
1616
const entity = container as any as Entity;
17-
entity.asPlayer?.updateTablesAndWeight("M");
17+
entity.asHuman?.updateTablesAndWeight("M");
1818
}
1919
}
2020

0 commit comments

Comments
 (0)