Break loop instead of huge number

This commit is contained in:
bakawun 2023-11-29 16:42:45 +01:00 committed by ryvnf
parent d3b94f4999
commit 1aed6f4858

View File

@ -432,7 +432,7 @@ if mobs_spawn then
mob_chance = mob_library_worker_table[mob_index].chance
step_chance = step_chance + mob_chance
else
step_chance = 1000000
break
end
if mob_index > #mob_library_worker_table then
mob_index = 1