forked from MineClone5/MineClone5
replace pairs() by ipairs() in mcl_player
This commit is contained in:
parent
25653e6178
commit
4c3954959c
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue