Fix minor water/lava offset being in opposite direction compared to original minecraft classic

This commit is contained in:
UnknownShadow200 2022-08-21 10:33:23 +10:00
parent 4bf0cda6e2
commit 0fae073703

View file

@ -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;