use `pairs()`, not `ipairs()`

This commit is contained in:
nixnoxus 2024-04-21 20:39:49 +02:00
parent b7e514ca6b
commit 539b7e6b1f
1 changed files with 1 additions and 1 deletions

View File

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