Fix crash when player leaves in multiplayer
This commit is contained in:
parent
f0f5d75e17
commit
f2794e80d4
@ -76,7 +76,7 @@ rp_formspec.register_page("rp_default:chest", form_chest)
|
|||||||
local reading_bookshelves = {}
|
local reading_bookshelves = {}
|
||||||
|
|
||||||
minetest.register_on_leaveplayer(function(player)
|
minetest.register_on_leaveplayer(function(player)
|
||||||
local name = player:get_playr_name()
|
local name = player:get_player_name()
|
||||||
reading_bookshelves[name] = nil
|
reading_bookshelves[name] = nil
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user