This commit is contained in:
tour 2024-02-12 20:13:59 +01:00
parent 9aa8bbf08a
commit 7f96ca83f0
3 changed files with 4 additions and 4 deletions

View File

@ -28,5 +28,5 @@ function chat_formspec.update()
}
end
end
chat_formspec.selection_fs = create_selection_formspec()
chat_formspec.selection_fs = chat_formspec.create_selection_formspec()
end

View File

@ -20,7 +20,7 @@ local function chat_escape(text) -- remove all control characters to prevent
end
-- show a formspec to a player
-- show a chat_formspec to a player
function chat_formspec.show_to_target(sendername, fs)
local sendercontext = chat_formspec.get_context(sendername)
local targetname = sendercontext.target

View File

@ -1,4 +1,4 @@
local function create_selection_formspec()
function chat_formspec.create_selection_formspec()
local fs = [[
formspec_version[6]
size[16,12]
@ -14,7 +14,7 @@ local function create_selection_formspec()
return fs
end
chat_formspec.selection_fs = create_selection_formspec()
chat_formspec.selection_fs = chat_formspec.create_selection_formspec()
chat_formspec.custom_template = [[
formspec_version[6]