don't run on_spawn twice

This commit is contained in:
cora 2022-10-13 06:06:14 +02:00
parent 546b9ade6f
commit ba25e57eac

View file

@ -647,11 +647,6 @@ if mobs_spawn then
end end
object = mcl_mobs.spawn(spawning_position, mob_def.name) object = mcl_mobs.spawn(spawning_position, mob_def.name)
end end
if object then
return mob_def.on_spawn and mob_def.on_spawn(object, spawning_position)
end
end end
current_summary_chance = current_summary_chance - mob_chance current_summary_chance = current_summary_chance - mob_chance
table_remove(mob_library_worker_table, mob_index) table_remove(mob_library_worker_table, mob_index)