0
0
Fork 0

Localize variable in mcl_beds

This commit is contained in:
kay27 2020-08-01 05:44:02 +04:00
parent 0a5cb628c5
commit afc6a1bb0f
1 changed files with 1 additions and 1 deletions

View File

@ -364,7 +364,7 @@ end)
minetest.register_on_leaveplayer(function(player)
local name = player:get_player_name()
lay_down(player, nil, nil, false, true)
players = minetest.get_connected_players()
local players = minetest.get_connected_players()
for n, player in ipairs(players) do
if player:get_player_name() == name then
players[n] = nil