Change whole gui system
This commit is contained in:
+12
-2
@@ -43,7 +43,7 @@ Deno.test("packing a mod keeps its data, scripts, textures and credits, and give
|
||||
|
||||
const bworld = read_bmod(Deno.readFileSync(`${folder}/bworld.bmod`), "bworld.bmod");
|
||||
assertEquals(bworld.data.blocks.length, 42);
|
||||
assertEquals(Object.keys(bworld.scripts), ["server"]);
|
||||
assertEquals(Object.keys(bworld.scripts), ["server", "client"]);
|
||||
|
||||
Deno.removeSync(sources, { recursive: true });
|
||||
Deno.removeSync(folder, { recursive: true });
|
||||
@@ -240,7 +240,17 @@ Deno.test("the atlas fits textures of any size, tallest first, without overlappi
|
||||
Deno.test("a mod with only data packs and reads", () => {
|
||||
const bmod = {
|
||||
manifest: { format_version: 1, id: "tiny", name: "Tiny", version: "1.0.0" },
|
||||
data: { blocks: [], models: [], items: [], recipes: [], ores: [], spawns: [], entities: [], entity_models: [], tags: [] },
|
||||
data: {
|
||||
blocks: [],
|
||||
models: [],
|
||||
items: [],
|
||||
recipes: [],
|
||||
ores: [],
|
||||
spawns: [],
|
||||
entities: [],
|
||||
entity_models: [],
|
||||
tags: [],
|
||||
},
|
||||
scripts: {},
|
||||
textures: new Map(),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user