mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-21 14:53:16 -04:00
fix crash on early logout
This commit is contained in:
parent
7caa5d36f2
commit
52d7975b51
1 changed files with 4 additions and 0 deletions
|
@ -20,6 +20,10 @@ minetest.register_on_joinplayer(function(player)
|
|||
listcolors[#00000069;#5A5A5A;#141318;#30434C;#FFF] ]]
|
||||
local name = player:get_player_name()
|
||||
local info = minetest.get_player_information(name)
|
||||
if not info then
|
||||
minetest.log("warning", "player " .. name .. " disappeared")
|
||||
return
|
||||
end
|
||||
if info.formspec_version > 1 then
|
||||
formspec = formspec .. "background9[5,5;1,1;gui_formbg.png;true;10]"
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue