From 0fae073703d411602b70d8fa43b2ac3199a009e8 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Sun, 21 Aug 2022 10:33:23 +1000 Subject: [PATCH] Fix minor water/lava offset being in opposite direction compared to original minecraft classic --- src/Block.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Block.c b/src/Block.c index 61e596365..b9157d09c 100644 --- a/src/Block.c +++ b/src/Block.c @@ -293,8 +293,8 @@ void Block_CalcRenderBounds(BlockID block) { Vec3 min = Blocks.MinBB[block], max = Blocks.MaxBB[block]; if (Blocks.IsLiquid[block]) { - min.X -= 0.1f/16.0f; max.X -= 0.1f/16.0f; - min.Z -= 0.1f/16.0f; max.Z -= 0.1f/16.0f; + min.X += 0.1f/16.0f; max.X += 0.1f/16.0f; + min.Z += 0.1f/16.0f; max.Z += 0.1f/16.0f; min.Y -= 1.5f/16.0f; max.Y -= 1.5f/16.0f; } else if (Blocks.Draw[block] == DRAW_TRANSLUCENT && Blocks.Collide[block] != COLLIDE_SOLID) { min.X += 0.1f/16.0f; max.X += 0.1f/16.0f;