Change the asset keys
This commit is contained in:
@@ -74,7 +74,7 @@ async function registries() {
|
||||
write_testmod(dir);
|
||||
await test_game(dir);
|
||||
Deno.removeSync(dir, { recursive: true });
|
||||
AssetManager.instance.assets["bworld:textures_info"] = {};
|
||||
AssetManager.instance.assets["cubi:textures_info"] = {};
|
||||
const nid = (id: string) => EverythingRegistry.get_id("blocks", id)!;
|
||||
const value = (id: string, state = 0) => block_value(nid(id), state);
|
||||
return { nid, value };
|
||||
@@ -336,7 +336,7 @@ Deno.test("an item is drawn the size it is on the ground, with one model for eve
|
||||
|
||||
Deno.test("a fluid's box is its texture cut to fit and tinted in its color, a model of its own that goes with it", async () => {
|
||||
const { nid, value } = await registries();
|
||||
AssetManager.instance.assets["bworld:textures_info"] = {
|
||||
AssetManager.instance.assets["cubi:textures_info"] = {
|
||||
"testmod:syrup_still": { x: 32, y: 0, width: 16, height: 16 },
|
||||
};
|
||||
let box: FluidInstance | undefined;
|
||||
@@ -434,7 +434,7 @@ Deno.test({
|
||||
shade: true,
|
||||
};
|
||||
// the atlas is just its texture
|
||||
AssetManager.instance.assets["bworld:textures_info"] = {
|
||||
AssetManager.instance.assets["cubi:textures_info"] = {
|
||||
"testmod:shaft": { x: 0, y: 0, width: 16, height: 16 },
|
||||
};
|
||||
const quads = instance_quads([quad], () => [1, 1, 1]);
|
||||
|
||||
Reference in New Issue
Block a user