Skip to content

Commit

Permalink
[ChunkBuilder] Fixed #113.
Browse files Browse the repository at this point in the history
  • Loading branch information
Unarelith committed Jun 18, 2020
1 parent eb4370e commit 276efe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/client/world/ChunkBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ inline void ChunkBuilder::addFace(s8f x, s8f y, s8f z, s8f f, const ClientChunk
}
else {
float blockHeight = vertexPos[v]->z;
if (block.drawType() == BlockDrawType::Liquid && (!surroundingBlock || !surroundingBlock->id())) {
if (block.drawType() == BlockDrawType::Liquid && (f != BlockFace::Bottom || !surroundingBlock || !surroundingBlock->id())) {
if (f == BlockFace::Bottom)
blockHeight = vertexPos[v]->z - 2.f / 16.f;
else
Expand Down

0 comments on commit 276efe5

Please sign in to comment.