mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-20 22:33:16 -04:00
Fix default mod nil check
This fixes the error that occurs when info is not returned on occasion, so info.formspec_version is not available and crashes servers.
This commit is contained in:
parent
8c01a5b288
commit
cb968e29c8
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