mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-26 03:07:32 +01:00
Fix warning in mcl_beds
This commit is contained in:
parent
9956e267aa
commit
b5d92f3078
@ -359,6 +359,7 @@ end)
|
||||
|
||||
minetest.register_on_leaveplayer(function(player)
|
||||
local players = minetest.get_connected_players()
|
||||
local name = player:get_player_name()
|
||||
for n, player in ipairs(players) do
|
||||
if player:get_player_name() == name then
|
||||
players[n] = nil
|
||||
|
Loading…
Reference in New Issue
Block a user