aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/LocalPlayer.cpp
diff options
context:
space:
mode:
authorZinc <63198698+ZincTheMetal@users.noreply.github.com>2026-03-02 19:21:55 +0200
committerGitHub <noreply@github.com>2026-03-03 00:21:55 +0700
commitfe65211d42f7c94df6a7fe69b385d2c6ad2876c7 (patch)
tree0b74a48e4af9300ba30440598654696495c7b23c /Minecraft.Client/LocalPlayer.cpp
parentbbb199c2a29378331befabed23271684b1481d5a (diff)
Change flight activation/deactivation requirements (#145)
Diffstat (limited to 'Minecraft.Client/LocalPlayer.cpp')
-rw-r--r--Minecraft.Client/LocalPlayer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Minecraft.Client/LocalPlayer.cpp b/Minecraft.Client/LocalPlayer.cpp
index ed286cd9..97891046 100644
--- a/Minecraft.Client/LocalPlayer.cpp
+++ b/Minecraft.Client/LocalPlayer.cpp
@@ -365,7 +365,7 @@ void LocalPlayer::aiStep()
{
if (jumpTriggerTime == 0)
{
- jumpTriggerTime = 10; // was 7
+ jumpTriggerTime = 7; // the 4J team changed it to 10 because of additional requirements to initiate flight
twoJumpsRegistered = false;
}
else
@@ -373,7 +373,7 @@ void LocalPlayer::aiStep()
twoJumpsRegistered = true;
}
}
- else if( ( !input->jumping ) && ( jumpTriggerTime > 0 ) && twoJumpsRegistered )
+ else if(jumpTriggerTime > 0 && twoJumpsRegistered) //the 4J team checked if the player was NOT jumping after the two jumps, aka had let go of the jump button
{
#ifndef _CONTENT_PACKAGE
printf("flying was %s\n", abilities.flying ? "on" : "off");