Rename glass block

This commit is contained in:
2026-11-03 15:43:18 -03:00
parent c3394f69b6
commit 68b78f053a
25 changed files with 285 additions and 285 deletions
+2 -2
View File
@@ -78,7 +78,7 @@ const shaded = (color: number, shade: number) =>
[color >> 16, (color >> 8) & 0xff, color & 0xff].map((c) => Math.round(shade * c));
Deno.test("the grass block's top is its biome's grass color, and only the top", async () => {
const { top, sides } = await mesh_block("bworld:grass", 8, { grass: 0xff8000, foliage: 0x0000ff }, null);
const { top, sides } = await mesh_block("bworld:grass_block", 8, { grass: 0xff8000, foliage: 0x0000ff }, null);
assertEquals(top, [[255, 128, 0]]);
assertEquals(sides.length, 4);
for (const [r, g, b] of sides) assert(r === g && g === b, "sides aren't tinted");
@@ -86,7 +86,7 @@ Deno.test("the grass block's top is its biome's grass color, and only the top",
Deno.test("biome colors blend over the 5x5 columns around, across chunk edges", async () => {
// at x 0 the two columns to its -x are in the other chunk: 10 of the 25 are blue, 15 red
const { top } = await mesh_block("bworld:grass", 0, { grass: 0xff0000, foliage: 0 }, {
const { top } = await mesh_block("bworld:grass_block", 0, { grass: 0xff0000, foliage: 0 }, {
grass: 0x0000ff,
foliage: 0,
});