From 95b9b346ac16a50d3c72423503f579d3d712c392 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Wed, 26 Aug 2026 17:29:16 +0300 Subject: [PATCH 1/3] fix heightmap noise multiplier argument --- src/logic/scripting/lua/usertypes/lua_type_heightmap.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/logic/scripting/lua/usertypes/lua_type_heightmap.cpp b/src/logic/scripting/lua/usertypes/lua_type_heightmap.cpp index 6ae6a0d8d..9926ec18e 100644 --- a/src/logic/scripting/lua/usertypes/lua_type_heightmap.cpp +++ b/src/logic/scripting/lua/usertypes/lua_type_heightmap.cpp @@ -128,11 +128,10 @@ static int l_noise(lua::State* L) { } float noiseValue = fnlGetNoise2D(noise, u, v); + float t = 1.0f / static_cast(1 << c) * multiplier; if (normalizedNoise) { - float t = 1.0f / (static_cast(1 << c) * multiplier); value = value * (1.0f - t) + noiseValue * t; } else { - float t = 1.0f / static_cast(1 << c) * multiplier; value += noiseValue * t; } heights[i] = value; From 8214f1bd096ca3682212ac57648017ab8179948f Mon Sep 17 00:00:00 2001 From: MihailRis Date: Wed, 26 Aug 2026 18:06:05 +0300 Subject: [PATCH 2/3] fix blocks render at the top of the world --- src/graphics/render/BlocksRenderer.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/graphics/render/BlocksRenderer.hpp b/src/graphics/render/BlocksRenderer.hpp index 0488f0080..819e79bca 100644 --- a/src/graphics/render/BlocksRenderer.hpp +++ b/src/graphics/render/BlocksRenderer.hpp @@ -145,6 +145,9 @@ private: // Does block allow to see other blocks sides (is it transparent) bool isOpen(const glm::ivec3& pos, const Block& def, const Variant& variant) const { + if (pos.y >= CHUNK_H) { + return true; + } const auto& vox = voxelsBuffer->pickBlock( chunk->x * CHUNK_W + pos.x, pos.y, chunk->z * CHUNK_D + pos.z ); From 99bcefaed00e7e27210bf37ce7d1b98911ae77b5 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Wed, 26 Aug 2026 20:18:34 +0300 Subject: [PATCH 3/3] fix xml.tostring --- src/logic/scripting/lua/libs/libxml.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logic/scripting/lua/libs/libxml.cpp b/src/logic/scripting/lua/libs/libxml.cpp index 139e0ee35..4aa11f3dd 100644 --- a/src/logic/scripting/lua/libs/libxml.cpp +++ b/src/logic/scripting/lua/libs/libxml.cpp @@ -51,7 +51,7 @@ static std::unique_ptr toxml(lua::State* L) { break; } auto key = lua::require_lstring(L, -1); - if (key == "@") { + if (key == TAG_ATTR) { break; } auto value = lua::require_lstring(L, -2);