mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-14 15:31:49 +00:00
bug fix (#549)
* fix: pause menu on hudVisible=false * add missing property * reset controls fix
This commit is contained in:
parent
6ab48fda93
commit
49727ec026
3 changed files with 2 additions and 4 deletions
|
|
@ -7,7 +7,7 @@ local names = {
|
||||||
"hidden", "draw-group", "picking-item", "surface-replacement", "script-name",
|
"hidden", "draw-group", "picking-item", "surface-replacement", "script-name",
|
||||||
"ui-layout", "inventory-size", "tick-interval", "overlay-texture",
|
"ui-layout", "inventory-size", "tick-interval", "overlay-texture",
|
||||||
"translucent", "fields", "particles", "icon-type", "icon", "placing-block",
|
"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
|
for name, _ in pairs(user_props) do
|
||||||
table.insert(names, name)
|
table.insert(names, name)
|
||||||
|
|
|
||||||
|
|
@ -168,11 +168,9 @@ void GlobalChunks::decref(Chunk* chunk) {
|
||||||
ekey.pos[1] = chunk->z;
|
ekey.pos[1] = chunk->z;
|
||||||
|
|
||||||
save(chunk);
|
save(chunk);
|
||||||
|
|
||||||
if (onUnload) {
|
if (onUnload) {
|
||||||
onUnload(*chunk);
|
onUnload(*chunk);
|
||||||
}
|
}
|
||||||
|
|
||||||
chunksMap.erase(ekey.key);
|
chunksMap.erase(ekey.key);
|
||||||
refCounters.erase(found);
|
refCounters.erase(found);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -234,7 +234,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
void rebind(const std::string& name, InputType type, int code) {
|
void rebind(const std::string& name, InputType type, int code) {
|
||||||
require(name) = Binding(type, code);
|
require(name).reset(type, code);
|
||||||
}
|
}
|
||||||
|
|
||||||
auto& getAll() {
|
auto& getAll() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue