ctx.recipes.list api on shared side

This commit is contained in:
2026-10-30 23:17:54 -03:00
parent 4717e45a9a
commit 43aa6b2551
5 changed files with 41 additions and 3 deletions
+1 -1
View File
@@ -262,7 +262,7 @@ export function client_of(game: GameServer, area: Area) {
items: shared_items_api("bworld"),
// only its blocks are looked at here
fluids: { register() {} },
recipes: { register() {} },
recipes: { register() {}, list: () => [] },
world,
components: { register_block: (id, block_rules) => rules.register("bworld", id, block_rules) },
});