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() {