Skip to content

Instantly share code, notes, and snippets.

@Ekdohibs
Created March 26, 2017 01:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ekdohibs/bcbe4bd75fa530b30e1c92b578151de1 to your computer and use it in GitHub Desktop.
Save Ekdohibs/bcbe4bd75fa530b30e1c92b578151de1 to your computer and use it in GitHub Desktop.
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index ab30df22..35d3e224 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -450,7 +450,7 @@ void LocalPlayer::move(f32 dtime, Environment *env, f32 pos_max_d,
*/
const ContentFeatures &f = nodemgr->get(map->getNodeNoEx(getStandingNodePos()));
// Determine if jumping is possible
- m_can_jump = touching_ground && !in_liquid;
+ m_can_jump = (touching_ground || (physics_override_sneak_glitch && m_sneak_node_exists && control.sneak)) && !in_liquid;
if(itemgroup_get(f.groups, "disable_jump"))
m_can_jump = false;
// Jump key pressed while jumping off from a bouncy block
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment