forked from VoxeLibre/VoxeLibre
use `pairs()`, not `ipairs()`
This commit is contained in:
parent
b7e514ca6b
commit
539b7e6b1f
|
@ -40,7 +40,7 @@ end
|
|||
|
||||
local function players_in_overworld(players)
|
||||
local count = 0
|
||||
for n, player in ipairs(players) do
|
||||
for _, player in pairs(players) do
|
||||
if player and pos_to_dim(player:get_pos()) == "overworld" then
|
||||
count = count +1
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue