From b03099f8fc273030f4a9af3f1b36ac58971db27e Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Thu, 16 Jan 2020 15:12:37 +1100 Subject: [PATCH] Fix if your third person camera is positioned to be under the water outside the map but above the bedrock, but your player's position is still inside the map, translucent blocks above the water appear invisible --- src/Game.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Game.c b/src/Game.c index 623f5a043..b8a5400dc 100644 --- a/src/Game.c +++ b/src/Game.c @@ -531,9 +531,9 @@ static void Game_Render3D(double delta, float t) { PickedPosRenderer_Render(); } - /* Render water over translucent blocks when underwater for proper alpha blending */ - pos = LocalPlayer_Instance.Base.Position; - if (Camera.CurrentPos.Y < Env.EdgeHeight && (pos.X < 0 || pos.Z < 0 || pos.X > World.Width || pos.Z > World.Length)) { + /* Render water over translucent blocks when under the water outside the map for proper alpha blending */ + pos = Camera.CurrentPos; + if (pos.Y < Env.EdgeHeight && (pos.X < 0 || pos.Z < 0 || pos.X > World.Width || pos.Z > World.Length)) { MapRenderer_RenderTranslucent(delta); EnvRenderer_RenderMapEdges(); } else {