diff options
| author | qwasdrizzel <145519042+qwasdrizzel@users.noreply.github.com> | 2026-03-05 22:20:39 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-05 22:20:39 -0600 |
| commit | 255a18fe8e9b57377975f82e2b227afe2a12eda0 (patch) | |
| tree | 71d80367e3a710c3f29cba4c1d18743a5f7dcf69 /Minecraft.Client/GameRenderer.cpp | |
| parent | cffe636e359441e1c667784d40bd71d111c281de (diff) | |
Fix crash by ensuring FOV is not less than 1
Diffstat (limited to 'Minecraft.Client/GameRenderer.cpp')
| -rw-r--r-- | Minecraft.Client/GameRenderer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Minecraft.Client/GameRenderer.cpp b/Minecraft.Client/GameRenderer.cpp index 390f114d..174d356c 100644 --- a/Minecraft.Client/GameRenderer.cpp +++ b/Minecraft.Client/GameRenderer.cpp @@ -389,6 +389,8 @@ float GameRenderer::getFov(float a, bool applyEffects) shared_ptr<LocalPlayer> player = dynamic_pointer_cast<LocalPlayer>(mc->cameraTargetPlayer); int playerIdx = player ? player->GetXboxPad() : 0; float fov = m_fov;//70; + if (fov < 1) fov = 0.01; // Crash fix + if (applyEffects) { fov += mc->options->fov * 40; |
