From c2df1a08351101034f52fd2810051715714c9c40 Mon Sep 17 00:00:00 2001 From: =?utf8?q?D=C3=A1niel=20Juh=C3=A1sz?= Date: Sat, 24 Jun 2017 18:15:00 +0000 Subject: [PATCH] Emit liquid sound if the player walks in liquid (#6040) --- src/localplayer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/localplayer.cpp b/src/localplayer.cpp index aa38f338d..a77dcab0a 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -723,6 +723,9 @@ v3s16 LocalPlayer::getStandingNodePos() v3s16 LocalPlayer::getFootstepNodePos() { + if (in_liquid_stable) + // Emit swimming sound if the player is in liquid + return floatToInt(getPosition(), BS); if (touching_ground) // BS * 0.05 below the player's feet ensures a 1/16th height // nodebox is detected instead of the node below it. -- 2.25.1