Rename all "liquid" mentions to "fluid"
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user