mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-21 14:53:16 -04:00
Avoid error when 'get_player_information' returns 'nil'
This commit is contained in:
parent
176ddba176
commit
4c20fb987c
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ 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 info.formspec_version > 1 then
|
||||
if info and info.formspec_version > 1 then
|
||||
formspec = formspec .. "background9[5,5;1,1;gui_formbg.png;true;10]"
|
||||
else
|
||||
formspec = formspec .. "background[5,5;1,1;gui_formbg.png;true]"
|
||||
|
|
Loading…
Add table
Reference in a new issue