Add the oak_ on the oak blocks

This commit is contained in:
2026-10-03 18:56:44 -03:00
parent 41fa75e864
commit cb7d655f0c
26 changed files with 40 additions and 44 deletions
+2 -2
View File
@@ -56,7 +56,7 @@ Deno.test("region files keep chunks, including negative ones, and saving one aga
Deno.test("changed blocks are saved as whole chunks, and only chunks that changed are saved again", async () => {
const { game } = await test_game("mods");
game.set_block(3, 120, 5, "bworld:stone");
game.set_block(-20, 120, 40, "bworld:planks");
game.set_block(-20, 120, 40, "bworld:oak_planks");
game.world.set_block(-20, 121, 40, "bworld:furnace", 1);
const saved = game.save();
assertEquals(saved.chunks.map((c) => [c.x, c.z]).sort(), [[-2, 2], [0, 0]]);
@@ -75,7 +75,7 @@ Deno.test("changed blocks are saved as whole chunks, and only chunks that change
const loaded = await test_game("mods", saved);
assertEquals(loaded.game.world.get_block_id(3, 120, 5), "bworld:stone");
assertEquals(loaded.game.world.get_block_id(-20, 120, 40), "bworld:planks");
assertEquals(loaded.game.world.get_block_id(-20, 120, 40), "bworld:oak_planks");
assertEquals(loaded.game.world.get_block_value(-20, 121, 40) >>> 16, 1);
// players get the whole chunks, with what was saved in them
const join = loaded.join(1, "alice");