mirror of
https://gitlab.com/luk3yx/minetest-flow.git
synced 2025-10-08 22:43:10 +02:00
Fix logic
This commit is contained in:
parent
e27b34700a
commit
4a185105c3
4
init.lua
4
init.lua
@ -788,8 +788,8 @@ local function parse_callbacks(tree, ctx_form, auto_name_id,
|
||||
-- Update ctx.form if there is no current value, otherwise
|
||||
-- change the node's value to the saved one.
|
||||
local value = ctx_form[node_name]
|
||||
if node.type == "dropdown" and not node.index_event and
|
||||
not node._index_event_hack then
|
||||
if node.type == "dropdown" and (not node.index_event or
|
||||
node._index_event_hack) then
|
||||
-- Special case for dropdowns without index_event
|
||||
local items = node.items or {}
|
||||
if value == nil then
|
||||
|
Loading…
Reference in New Issue
Block a user