Block registry api

This commit is contained in:
2026-11-12 20:41:13 -03:00
parent e7fe663746
commit 76802ed430
39 changed files with 499 additions and 100 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ const [center_x, center_z] = [Number(Deno.args[2] ?? 0), Number(Deno.args[3] ??
// the base game, from mods/bworld: its data registered like the game does, and its worldgen script for trees and the
// rest of its features
const bworld = load_and_check().find((mod) => mod.id === "bworld")!;
const bworld = (await load_and_check()).find((mod) => mod.id === "bworld")!;
const jsons = <T>(list: { json: T }[]) => list.map((entry) => entry.json);
register_mod_data([{
id: "bworld",