Fix incorrect call to table.remove in on_leaveplayer

This commit is contained in:
Lars Müller 2023-03-11 10:06:41 +01:00 committed by GitHub
parent fd370b2741
commit 143792eb9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -191,5 +191,5 @@ minetest.register_on_joinplayer(function(player)
end)
minetest.register_on_leaveplayer(function(player)
table.remove(player)
playerlist[player] = nil
end)