Close if statement

This commit is contained in:
teknomunk 2024-03-17 20:33:35 +00:00
parent 3a4a8799ea
commit 74cf14ef0f

View file

@ -973,7 +973,7 @@ if mobs_spawn then
--mcl_log("mapgen_limit: " .. SPAWN_MAPGEN_LIMIT) --mcl_log("mapgen_limit: " .. SPAWN_MAPGEN_LIMIT)
while max_loops > 0 do while max_loops > 0 do
local spawning_position = get_next_mob_spawn_pos(pos) local spawning_position = get_next_mob_spawn_pos(pos)
if spawning_position then return spawning_position if spawning_position then return spawning_position end
max_loops = max_loops - 1 max_loops = max_loops - 1
end end