mirror of
https://github.com/mt-mods/mail.git
synced 2025-07-13 18:01:54 -04:00
Harmonize function names with snake case
This commit is contained in:
parent
6f7ccc77bd
commit
1c5e4b6cd6
9 changed files with 19 additions and 19 deletions
|
@ -27,7 +27,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
|||
|
||||
if fields.contacts then
|
||||
local evt = minetest.explode_table_event(fields.contacts)
|
||||
for k, _, i in mail.pairsByKeys(contacts) do
|
||||
for k, _, i in mail.pairs_by_keys(contacts) do
|
||||
if i == evt.row - 1 then
|
||||
mail.selected_idxs.contacts[name] = tonumber(k)
|
||||
break
|
||||
|
@ -58,7 +58,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
|||
-- except if it was the last. Then determine the new last
|
||||
local found = false
|
||||
local last = nil
|
||||
for k in mail.pairsByKeys(contacts) do
|
||||
for k in mail.pairs_by_keys(contacts) do
|
||||
if found then
|
||||
mail.selected_idxs.contacts[name] = tonumber(k)
|
||||
break
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue