replace singleplayer with Sam

This commit is contained in:
1F616EMO 2021-05-17 07:52:27 +08:00
parent eefe38c4c0
commit 90855aa865
Signed by: Emojigit
GPG Key ID: 2443E5F619026B90
1 changed files with 5 additions and 1 deletions

View File

@ -189,9 +189,13 @@ function mcl_credits.show(player)
end
for _, tname in ipairs(group[3]) do
y = y + 25
local spname = name
if minetest.is_singleplayer() then
spname = "Sam"
end
add_hud_element({
hud_elem_type = "text",
text = tname:format(name),
text = tname:format(spname),
number = 0xFFFFFF,
scale = {x = 1, y = 1},
}, huds, y, 0)