From b5d92f307875ec1cf44ef3ed248fda1c218166dc Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Sun, 31 Jan 2021 14:04:11 +0100 Subject: [PATCH] Fix warning in mcl_beds --- mods/ITEMS/mcl_beds/functions.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/ITEMS/mcl_beds/functions.lua b/mods/ITEMS/mcl_beds/functions.lua index 6f4a31380f..8b1b82dfcb 100644 --- a/mods/ITEMS/mcl_beds/functions.lua +++ b/mods/ITEMS/mcl_beds/functions.lua @@ -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