mirror of
https://github.com/mt-mods/mail.git
synced 2025-03-15 06:01:25 +00:00
Do not call show_message() if selected message is empty (fix #115)
This commit is contained in:
parent
7754e7e361
commit
f8f500ed76
1 changed files with 3 additions and 1 deletions
|
@ -217,7 +217,9 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
|||
elseif formname == "mail:trash" and messagesTrash[mail.selected_idxs.trash[name]] then
|
||||
mail.selected_idxs.message[name] = messagesTrash[mail.selected_idxs.trash[name]].id
|
||||
end
|
||||
mail.show_message(name, mail.selected_idxs.message[name])
|
||||
if mail.selected_idxs.message[name] then
|
||||
mail.show_message(name, mail.selected_idxs.message[name])
|
||||
end
|
||||
|
||||
elseif fields.edit then
|
||||
if formname == "mail:drafts" and messagesDrafts[mail.selected_idxs.drafts[name]] then
|
||||
|
|
Loading…
Add table
Reference in a new issue