Entity and block sounds !

This commit is contained in:
2026-11-22 08:23:11 -03:00
parent da44685f54
commit d18fe19027
17 changed files with 332 additions and 20 deletions
+2
View File
@@ -198,6 +198,8 @@ export class LocalPlayer extends Player {
if (Math.abs(this.vx) < MIN_SPEED) this.vx = 0;
if (Math.abs(this.vz) < MIN_SPEED) this.vz = 0;
this.update_swim_animation();
// creeping and flying are quiet
if (this.on_ground && !this.sneaking) this.play_steps(undefined);
this.#send_position(
(this.on_ground && !was_on_ground) || this.swimming !== was_swimming ||
this.holding_sneak !== was_holding_sneak,