Created
March 26, 2017 01:58
-
-
Save Ekdohibs/bcbe4bd75fa530b30e1c92b578151de1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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