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
|
local flags_touched = false
|
||||||
if fields.eased == "true" then
|
if fields.eased == "true" then
|
||||||
formspec_states[name].eased = true
|
formspec_states[name].eased = true
|
||||||
|
return
|
||||||
elseif fields.eased == "false" then
|
elseif fields.eased == "false" then
|
||||||
formspec_states[name].eased = false
|
formspec_states[name].eased = false
|
||||||
|
return
|
||||||
end
|
end
|
||||||
if fields.absvalue == "true" then
|
if fields.absvalue == "true" then
|
||||||
formspec_states[name].absvalue = true
|
formspec_states[name].absvalue = true
|
||||||
|
return
|
||||||
elseif fields.absvalue == "false" then
|
elseif fields.absvalue == "false" then
|
||||||
formspec_states[name].absvalue = false
|
formspec_states[name].absvalue = false
|
||||||
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Deleting a profile does not require any other field
|
-- Deleting a profile does not require any other field
|
||||||
|
Loading…
x
Reference in New Issue
Block a user