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
+2 -2
View File
@@ -362,7 +362,7 @@ const MODIFIERS: Record<string, Builtin<Modifier>> = {
return (chunk, positions) => positions.map((p) => ({ x: p.x, y: height(chunk), z: p.z }));
},
},
// on top of the column: WORLD_SURFACE on its highest block, OCEAN_FLOOR on its highest that isn't a liquid.
// on top of the column: WORLD_SURFACE on its highest block, OCEAN_FLOOR on its highest that isn't a fluid.
// positions outside the chunk are dropped
heightmap: {
schema: z.object({ heightmap: z.enum(HEIGHTMAPS) }),
@@ -392,7 +392,7 @@ const MODIFIERS: Record<string, Builtin<Modifier>> = {
function counts_for_heightmap(id: string | undefined, floor: boolean) {
if (id === undefined || id === AIR_ID) return false;
return !floor || !EverythingRegistry.get<BlockRegistry>("blocks", id)?.liquid;
return !floor || !EverythingRegistry.get<BlockRegistry>("blocks", id)?.fluid;
}
// block predicates, like minecraft's