diff options
author | sfan5 <sfan5@live.de> | 2017-03-29 10:17:57 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2017-03-29 10:19:49 +0200 |
commit | 5e806690fc5e0067247bbc1e541ba03b83fb761b (patch) | |
tree | 7c6501259380626e2e93cc191e493935b67d7c47 | |
parent | b85301ce69a3dc0763408dafc88cb4c1f56e53cf (diff) | |
download | minetest-5e806690fc5e0067247bbc1e541ba03b83fb761b.tar.gz minetest-5e806690fc5e0067247bbc1e541ba03b83fb761b.tar.bz2 minetest-5e806690fc5e0067247bbc1e541ba03b83fb761b.zip |
Sneak: Fix sneaking on free-floating lower-half slabs
-rw-r--r-- | src/localplayer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index dfb770d7b..4bf3012dd 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -324,7 +324,7 @@ void LocalPlayer::move(f32 dtime, Environment *env, f32 pos_max_d, if (m_sneak_node_exists) position_y_mod = m_sneak_node_bb_top.MaxEdge.Y - 0.05 * BS; else - position_y_mod = (1.0 - 0.05) * BS; + position_y_mod = (0.5 - 0.05) * BS; v3s16 current_node = floatToInt(position - v3f(0, position_y_mod, 0), BS); /* Check the nodes under the player to see from which node the |