mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2025-02-16 18:54:58 +01:00
Don't spawn multiple mobs at the same position
this was originally intended to simulate group spawning i think
This commit is contained in:
parent
b3553fe3b8
commit
672e44bbb1
1 changed files with 1 additions and 3 deletions
|
@ -716,9 +716,7 @@ if mobs_spawn then
|
|||
-- ignore void and unloaded area
|
||||
if dimension ~= "void" and dimension ~= "default" then
|
||||
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)
|
||||
end
|
||||
spawn_a_mob(pos, dimension, y_min, y_max)
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
|
Loading…
Reference in a new issue