Merge pull request 'Fix mobs spawner count' (#1915) from TioBlocos/MineClone2:fix-mobs-spawn into master

Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/1915
This commit is contained in:
NO11 2021-11-22 12:06:12 +00:00
commit 2127bb3ef1

View File

@ -230,7 +230,7 @@ local function spawn_mobs(pos, elapsed)
-- spawn up to 4 mobs in random air blocks -- spawn up to 4 mobs in random air blocks
if air then if air then
local max = 200 local max = 4
if spawn_count_overrides[mob] then if spawn_count_overrides[mob] then
max = spawn_count_overrides[mob] max = spawn_count_overrides[mob]
end end