mirror of
https://github.com/mt-mods/mail.git
synced 2025-04-30 16:31:43 -04:00
parent
2d02797253
commit
ef9c2dfae9
1 changed files with 1 additions and 1 deletions
|
@ -274,7 +274,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||||
if #mail.selected_idxs.sent[name] >= #getOutbox() then -- if selection is full
|
if #mail.selected_idxs.sent[name] >= #getOutbox() then -- if selection is full
|
||||||
mail.selected_idxs.sent[name] = {}
|
mail.selected_idxs.sent[name] = {}
|
||||||
else
|
else
|
||||||
mail.selected_idxs.inbox[name] = {} -- reset to avoid duplicates
|
mail.selected_idxs.sent[name] = {} -- reset to avoid duplicates
|
||||||
mail.selected_idxs.multipleselection[name] = true
|
mail.selected_idxs.multipleselection[name] = true
|
||||||
for _, msg in ipairs(getOutbox()) do
|
for _, msg in ipairs(getOutbox()) do
|
||||||
table.insert(mail.selected_idxs.sent[name], msg.id)
|
table.insert(mail.selected_idxs.sent[name], msg.id)
|
||||||
|
|
Loading…
Add table
Reference in a new issue