aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqwasdrizzel <145519042+qwasdrizzel@users.noreply.github.com>2026-03-05 22:20:39 -0600
committerGitHub <noreply@github.com>2026-03-05 22:20:39 -0600
commit255a18fe8e9b57377975f82e2b227afe2a12eda0 (patch)
tree71d80367e3a710c3f29cba4c1d18743a5f7dcf69
parentcffe636e359441e1c667784d40bd71d111c281de (diff)
Fix crash by ensuring FOV is not less than 1
-rw-r--r--Minecraft.Client/GameRenderer.cpp2
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;