From 49727ec02647e48323266fbf814c15f6d5632ee9 Mon Sep 17 00:00:00 2001 From: clasher113 <61116084+clasher113@users.noreply.github.com> Date: Mon, 14 Jul 2025 18:45:47 +0300 Subject: [PATCH] bug fix (#549) * fix: pause menu on hudVisible=false * add missing property * reset controls fix --- res/scripts/post_content.lua | 2 +- src/voxels/GlobalChunks.cpp | 2 -- src/window/input.hpp | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/res/scripts/post_content.lua b/res/scripts/post_content.lua index 249ed65c..7b17876e 100644 --- a/res/scripts/post_content.lua +++ b/res/scripts/post_content.lua @@ -7,7 +7,7 @@ local names = { "hidden", "draw-group", "picking-item", "surface-replacement", "script-name", "ui-layout", "inventory-size", "tick-interval", "overlay-texture", "translucent", "fields", "particles", "icon-type", "icon", "placing-block", - "stack-size", "name", "script-file" + "stack-size", "name", "script-file", "culling" } for name, _ in pairs(user_props) do table.insert(names, name) diff --git a/src/voxels/GlobalChunks.cpp b/src/voxels/GlobalChunks.cpp index 7ebfddf4..fbca2eec 100644 --- a/src/voxels/GlobalChunks.cpp +++ b/src/voxels/GlobalChunks.cpp @@ -168,11 +168,9 @@ void GlobalChunks::decref(Chunk* chunk) { ekey.pos[1] = chunk->z; save(chunk); - if (onUnload) { onUnload(*chunk); } - chunksMap.erase(ekey.key); refCounters.erase(found); } diff --git a/src/window/input.hpp b/src/window/input.hpp index 0880ca88..2edfe4c7 100644 --- a/src/window/input.hpp +++ b/src/window/input.hpp @@ -234,7 +234,7 @@ public: } void rebind(const std::string& name, InputType type, int code) { - require(name) = Binding(type, code); + require(name).reset(type, code); } auto& getAll() {