mirror of
https://github.com/mt-mods/mail.git
synced 2025-07-07 23:20:31 -04:00
contacts refactoring
This commit is contained in:
parent
b414ace620
commit
a690fc721d
6 changed files with 45 additions and 81 deletions
2
gui.lua
2
gui.lua
|
@ -2,7 +2,7 @@
|
|||
function mail.compile_contact_list(name, selected, playernames)
|
||||
-- TODO: refactor this - not just compiles *a* list, but *the* list for the contacts screen (too inflexible)
|
||||
local formspec = {}
|
||||
local contacts = mail.getPlayerContacts(name)
|
||||
local contacts = mail.get_contacts(name)
|
||||
|
||||
if playernames == nil then
|
||||
local length = 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue