Rename all "liquid" mentions to "fluid"

This commit is contained in:
2026-10-25 13:54:53 -03:00
parent bcca8fa4a5
commit 0cfa4d9b4a
58 changed files with 547 additions and 548 deletions
+4 -4
View File
@@ -74,11 +74,11 @@ Deno.test("which way water flows, from where it's higher to where it's lower", a
const { game, ctx } = await setup();
game.set_block(0, 100, 0, "bworld:water");
for (let i = 0; i < 40; i++) game.tick();
assertEquals(ctx.world.liquid_flow(2, 100, 0), { x: 1, y: 0, z: 0 });
assertEquals(ctx.world.liquid_flow(0, 100, -2), { x: 0, y: 0, z: -1 });
assertEquals(ctx.world.fluid_flow(2, 100, 0), { x: 1, y: 0, z: 0 });
assertEquals(ctx.world.fluid_flow(0, 100, -2), { x: 0, y: 0, z: -1 });
// a source with water all around is still, and so is air
assertEquals(ctx.world.liquid_flow(0, 100, 0), { x: 0, y: 0, z: 0 });
assertEquals(ctx.world.liquid_flow(0, 102, 0), { x: 0, y: 0, z: 0 });
assertEquals(ctx.world.fluid_flow(0, 100, 0), { x: 0, y: 0, z: 0 });
assertEquals(ctx.world.fluid_flow(0, 102, 0), { x: 0, y: 0, z: 0 });
});
Deno.test("items lying in a box are found, changed and taken away", async () => {