diff --git a/src/ui/GUI.cs b/src/ui/GUI.cs index 2b8fbae..c56659c 100644 --- a/src/ui/GUI.cs +++ b/src/ui/GUI.cs @@ -355,8 +355,8 @@ public Vector2 measureStringSmall(ReadOnlySpan text) { public void drawBlock(Block block, int x, int y, int size) { //GD.Clear(ClearBuffers.Color); var viewport = GD.Viewport; - var dt = GD.DepthTestingEnabled; - GD.DepthTestingEnabled = true; + //var dt = GD.DepthTestingEnabled; + //GD.DepthTestingEnabled = true; GD.VertexArray = buffer; GD.ShaderProgram = guiBlockShader; WorldRenderer.meshBlockTinted(block, ref guiBlock, ref guiBlockI, 15); @@ -391,7 +391,7 @@ public void drawBlock(Block block, int x, int y, int size) { GD.DrawElements(PrimitiveType.Triangles, 0, (uint)spI.Length); // restore - GD.DepthTestingEnabled = dt; + //GD.DepthTestingEnabled = dt; GD.Viewport = viewport; } diff --git a/src/world/Player.cs b/src/world/Player.cs index 0dd409a..fa430a2 100644 --- a/src/world/Player.cs +++ b/src/world/Player.cs @@ -119,6 +119,7 @@ public void setPrevVars() { prevTotalTraveled = totalTraveled; wasInLiquid = inLiquid; prevSwingProgress = swingProgress; + renderer.prevLower = renderer.lower; } // before pausing, all vars need to be updated SO THERE IS NO FUCKING JITTER ON THE PAUSE MENU public void catchUpOnPrevVars() {