mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 10:31:06 +01:00
Merge pull request 'Fix 'spawn_in_group_min' warning' (#2567) from spawn_in_group_warning into master
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/2567 Reviewed-by: MysticTempest <mystictempest@noreply.git.minetest.land>
This commit is contained in:
commit
281e7273ef
1 changed files with 1 additions and 0 deletions
|
@ -513,6 +513,7 @@ if mobs_spawn then
|
|||
local mob_def = mob_library_worker_table[mob_index]
|
||||
local mob_type = minetest.registered_entities[mob_def.name].type
|
||||
local spawn_in_group = minetest.registered_entities[mob_def.name].spawn_in_group or 4
|
||||
local spawn_in_group_min = minetest.registered_entities[mob_def.name].spawn_in_group_min or 1
|
||||
local mob_count_wide = count_mobs(pos,aoc_range,mob_type)
|
||||
local mob_count = count_mobs(spawning_position,32,mob_type)
|
||||
if mob_def
|
||||
|
|
Loading…
Reference in a new issue