fix: being able to fly while riding entity

This commit is contained in:
2026-09-05 12:43:40 -04:00
parent a8a2c5393a
commit 7b4821d329
+2 -1
View File
@@ -313,7 +313,8 @@ void LocalPlayer::aiStep()
}
// 4J Stu - Fix for #52705 - Customer Encountered: Player can fly in bed while being in Creative mode.
if (!isSleeping() && (abilities.mayfly || isAllowedToFly() ))
//str1k3r - Add !isRiding() to fix being able to fly while riding Entity
if ((!isSleeping() && !isRiding()) && (abilities.mayfly || isAllowedToFly()))
{
// 4J altered to require jump button to released after being tapped twice to trigger move between flying / not flying
if (!wasJumping && input->jumping)