Rename all "liquid" mentions to "fluid"
This commit is contained in:
@@ -89,7 +89,7 @@ export class ItemEntity extends Entity {
|
||||
// like minecraft's ItemEntity.tick, gravity goes on its speed before it moves, not along the way like
|
||||
// move_body's. the floating numbers are made for that: an item bobbing up out of the water drops straight back
|
||||
// in, instead of hanging above it a tick longer and falling twice as fast
|
||||
if (physics.liquid_depth(this, (x, y, z) => level.liquid_at(x, y, z)) > FLOAT_DEPTH) {
|
||||
if (physics.fluid_depth(this, (x, y, z) => level.fluid_at(x, y, z)) > FLOAT_DEPTH) {
|
||||
this.vx *= WATER_DRAG;
|
||||
this.vz *= WATER_DRAG;
|
||||
if (this.vy < FLOAT_SPEED) this.vy += FLOAT_ACCELERATION;
|
||||
|
||||
Reference in New Issue
Block a user