Don't spawn multiple mobs at the same position

this was originally intended to simulate group spawning i think
This commit is contained in:
cora 2022-10-26 11:47:35 +02:00
parent b3553fe3b8
commit 672e44bbb1

View File

@ -716,11 +716,9 @@ if mobs_spawn then
-- ignore void and unloaded area -- ignore void and unloaded area
if dimension ~= "void" and dimension ~= "default" then if dimension ~= "void" and dimension ~= "default" then
local y_min, y_max = decypher_limits(pos.y) local y_min, y_max = decypher_limits(pos.y)
for i = 1, math_random(1, 4) do
spawn_a_mob(pos, dimension, y_min, y_max) spawn_a_mob(pos, dimension, y_min, y_max)
end end
end end
end
end) end)
end end