diff --git a/mods/PLAYER/mcl_playerplus/init.lua b/mods/PLAYER/mcl_playerplus/init.lua index dec3771da7..af735f2c9d 100644 --- a/mods/PLAYER/mcl_playerplus/init.lua +++ b/mods/PLAYER/mcl_playerplus/init.lua @@ -19,7 +19,7 @@ minetest.register_globalstep(function(dtime) -- Update jump status immediately since we need this info in real time. -- WARNING: This section is HACKY as hell since it is all just based on heuristics. - for _,player in pairs(minetest.get_connected_players()) do + for _,player in ipairs(minetest.get_connected_players()) do local controls = player:get_player_control() name = player:get_player_name() @@ -118,7 +118,7 @@ minetest.register_globalstep(function(dtime) time = 0 -- check players - for _,player in pairs(minetest.get_connected_players()) do + for _,player in ipairs(minetest.get_connected_players()) do -- who am I? local name = player:get_player_name()