From 4c3954959cd219f377588b6be9f2dac05597b632 Mon Sep 17 00:00:00 2001 From: AFCMS Date: Thu, 18 Feb 2021 15:32:15 +0000 Subject: [PATCH] replace pairs() by ipairs() in mcl_player --- mods/PLAYER/mcl_player/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/PLAYER/mcl_player/init.lua b/mods/PLAYER/mcl_player/init.lua index a94e3dfe17..e39e8f9564 100644 --- a/mods/PLAYER/mcl_player/init.lua +++ b/mods/PLAYER/mcl_player/init.lua @@ -137,7 +137,7 @@ local player_attached = mcl_player.player_attached -- Check each player and apply animations minetest.register_globalstep(function(dtime) - for _, player in pairs(minetest.get_connected_players()) do + for _, player in ipairs(minetest.get_connected_players()) do local name = player:get_player_name() local model_name = player_model[name] local model = model_name and models[model_name]