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
@@ -477,7 +477,7 @@ Deno.test("client scripts register visuals during setup, for blocks that exist",
const load = async (script: string) => {
const dir = Deno.makeTempDirSync({ prefix: "bworld_visuals_" });
write_testmod(dir, script);
const mod = load_and_check(dir)[0];
const mod = (await load_and_check(dir))[0];
const packed = read_mod(await pack_mod(mod), "testmod.cubi");
Deno.removeSync(dir, { recursive: true });
const listing: ModListing = { id: "testmod", name: "Test", version: "1.0.0", sha256: "", file: "", size: 0 };