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
+2 -2
View File
@@ -173,7 +173,7 @@ Deno.test("a client mod hooks LocalPlayer from its .cubi", async () => {
}`,
],
});
const mod = load_and_check(dir)[0];
const mod = (await load_and_check(dir))[0];
assertEquals(mod.report.errors, []);
const packed = read_mod(await pack_mod(mod), "floaty.cubi");
const listing: ModListing = {
@@ -344,7 +344,7 @@ Deno.test("cubi/engine without engine_access is an error in check-mods and in a
console.log(engine.common.physics);
}`;
write_mod(dir, "sneaky", { server: ["server.ts", script] }, {});
const [mod] = load_and_check(dir);
const [mod] = await load_and_check(dir);
assertEquals(mod.report.errors, [
`scripts/server.ts imports cubi/engine, which needs "engine_access": true in manifest.json`,
]);