From afc6a1bb0fa17ae07905e1c0e1f5ff46ba47c1b7 Mon Sep 17 00:00:00 2001 From: kay27 Date: Sat, 1 Aug 2020 05:44:02 +0400 Subject: [PATCH] Localize variable in mcl_beds --- mods/ITEMS/mcl_beds/functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_beds/functions.lua b/mods/ITEMS/mcl_beds/functions.lua index b1a0ce4fdd..389871497b 100644 --- a/mods/ITEMS/mcl_beds/functions.lua +++ b/mods/ITEMS/mcl_beds/functions.lua @@ -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