replace pairs() by ipairs() in mcl_playerplus

This commit is contained in:
AFCMS 2021-02-18 15:27:50 +00:00
parent 35d55376a9
commit 0531aae687

View file

@ -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()