forked from VoxeLibre/VoxeLibre
Localize variable in mcl_beds
This commit is contained in:
parent
0a5cb628c5
commit
afc6a1bb0f
|
@ -364,7 +364,7 @@ end)
|
||||||
minetest.register_on_leaveplayer(function(player)
|
minetest.register_on_leaveplayer(function(player)
|
||||||
local name = player:get_player_name()
|
local name = player:get_player_name()
|
||||||
lay_down(player, nil, nil, false, true)
|
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
|
for n, player in ipairs(players) do
|
||||||
if player:get_player_name() == name then
|
if player:get_player_name() == name then
|
||||||
players[n] = nil
|
players[n] = nil
|
||||||
|
|
Loading…
Reference in New Issue