mirror of
https://github.com/minetest-mods/i3.git
synced 2024-12-27 11:20:40 +01:00
Fix potential crash
This commit is contained in:
parent
9bc190443c
commit
8f58e3fda2
3
init.lua
3
init.lua
@ -2032,8 +2032,9 @@ end
|
|||||||
function i3.set_fs(player)
|
function i3.set_fs(player)
|
||||||
local name = player:get_player_name()
|
local name = player:get_player_name()
|
||||||
local data = pdata[name]
|
local data = pdata[name]
|
||||||
local fs = make_fs(player, data)
|
if not data then return end
|
||||||
|
|
||||||
|
local fs = make_fs(player, data)
|
||||||
player:set_inventory_formspec(fs)
|
player:set_inventory_formspec(fs)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user