fix warning (and potential group spawning problem)

This commit is contained in:
cora 2022-07-31 17:03:57 +02:00
parent 2d97817991
commit c54a60fedf
1 changed files with 1 additions and 0 deletions

View File

@ -508,6 +508,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