Merge from upstream: do not minetest.after() this.
A player could disconnect and cause an invalid `player` to be passed, crashing the server.
This commit is contained in:
parent
8ba9fe617a
commit
7835855c6f
@ -170,9 +170,7 @@ end
|
||||
|
||||
minetest.register_on_joinplayer(function(player)
|
||||
if sfinv.enabled then
|
||||
minetest.after(0.5, function()
|
||||
sfinv.set_player_inventory_formspec(player)
|
||||
end)
|
||||
end
|
||||
end)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user