From 7bfd53ba587a1be71c1f8b3ebc3208d59f4da9c1 Mon Sep 17 00:00:00 2001 From: number Zero Date: Fri, 9 Jun 2017 20:31:16 +0300 Subject: [PATCH] Plantlike meshoptions: Fix inverted random vertical offset --- src/content_mapblock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content_mapblock.cpp b/src/content_mapblock.cpp index 326433141..d7ee8fb82 100644 --- a/src/content_mapblock.cpp +++ b/src/content_mapblock.cpp @@ -836,7 +836,7 @@ void MapblockMeshGenerator::drawPlantlikeQuad(float rotation, float quad_offset, }; if (random_offset_Y) { PseudoRandom yrng(face_num++ | p.X << 16 | p.Z << 8 | p.Y << 24); - offset.Y = BS * ((yrng.next() % 16 / 16.0) * 0.125); + offset.Y = -BS * ((yrng.next() % 16 / 16.0) * 0.125); } int offset_count = offset_top_only ? 2 : 4; for (int i = 0; i < offset_count; i++) -- 2.25.1