Return if clicking checkbox
This commit is contained in:
parent
59ef7fb264
commit
5b40796439
4
init.lua
4
init.lua
@ -534,13 +534,17 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||
local flags_touched = false
|
||||
if fields.eased == "true" then
|
||||
formspec_states[name].eased = true
|
||||
return
|
||||
elseif fields.eased == "false" then
|
||||
formspec_states[name].eased = false
|
||||
return
|
||||
end
|
||||
if fields.absvalue == "true" then
|
||||
formspec_states[name].absvalue = true
|
||||
return
|
||||
elseif fields.absvalue == "false" then
|
||||
formspec_states[name].absvalue = false
|
||||
return
|
||||
end
|
||||
|
||||
-- Deleting a profile does not require any other field
|
||||
|
Loading…
x
Reference in New Issue
Block a user