Remove selected_idxs for settings after saving
This commit is contained in:
parent
8d80e4c709
commit
3eafeb4cf8
@ -156,6 +156,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||
-- save settings
|
||||
for setting, _ in pairs(mail.settings) do
|
||||
local new_value = mail.selected_idxs[setting][playername]
|
||||
mail.selected_idxs[setting][playername] = nil
|
||||
if new_value == nil then new_value = mail.get_setting(playername, setting) end
|
||||
mail.set_setting(playername, setting, new_value)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user