Update to Game Renderer

Fix split screen jump bug caused by renderer looking for elytra flight improperly
This commit is contained in:
Tranqlmao
2026-06-12 16:25:36 -04:00
parent 7071e9e312
commit 7aa9d619c1

View File

@@ -212,8 +212,7 @@ void GameRenderer::tick(bool first) // 4J - add bFirst
{
shared_ptr<Player> yBobPlayer = dynamic_pointer_cast<Player>(mc->cameraTargetPlayer);
float target = 0.0f;
if (yBobPlayer != nullptr && !yBobPlayer->onGround
&& !(yBobPlayer->abilities.mayfly && yBobPlayer->abilities.flying))
if (yBobPlayer != nullptr && yBobPlayer->isElytraFlying())
{
target = (float)(atan(-yBobPlayer->yd * 0.2) * 15.0);