Rename all "liquid" mentions to "fluid"
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
// when those move or change, and forgets them when they leave it
|
||||
import { CHUNK_SIZE } from "$/common/constants.ts";
|
||||
import { is_within_view } from "$/common/chunk_streaming.ts";
|
||||
import { liquid_block, liquid_in_cell } from "$/common/utils.ts";
|
||||
import { fluid_block, fluid_in_cell } from "$/common/utils.ts";
|
||||
import { biome_season } from "$/common/worldgen/biomes.ts";
|
||||
import type { ItemStack } from "$/common/inventory.ts";
|
||||
import type { EntityEvent, EntityInfo, ServerMessage } from "$/common/protocol.ts";
|
||||
@@ -99,9 +99,9 @@ export class EntityManager implements EntityLevel {
|
||||
return this.#host.world.collision_shape(x, y, z);
|
||||
}
|
||||
|
||||
is_liquid(x: number, y: number, z: number) {
|
||||
is_fluid(x: number, y: number, z: number) {
|
||||
const world = this.#host.world;
|
||||
return liquid_block(world.get_block_value(x, y, z), world.get_block_info(x, y, z)) !== undefined;
|
||||
return fluid_block(world.get_block_value(x, y, z), world.get_block_info(x, y, z)) !== undefined;
|
||||
}
|
||||
|
||||
get_block_info(x: number, y: number, z: number) {
|
||||
@@ -116,9 +116,9 @@ export class EntityManager implements EntityLevel {
|
||||
return biome_season(this.biome_at(x, z), this.#host.world.time);
|
||||
}
|
||||
|
||||
liquid_at(x: number, y: number, z: number) {
|
||||
fluid_at(x: number, y: number, z: number) {
|
||||
const world = this.#host.world;
|
||||
return liquid_in_cell(world.get_block_value(x, y, z), world.get_block_info(x, y, z));
|
||||
return fluid_in_cell(world.get_block_value(x, y, z), world.get_block_info(x, y, z));
|
||||
}
|
||||
|
||||
nearest_player(x: number, y: number, z: number, max_distance: number): ServerPlayer | undefined {
|
||||
|
||||
Reference in New Issue
Block a user