mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-19 09:31:07 +01:00
don't run on_spawn twice
This commit is contained in:
parent
546b9ade6f
commit
ba25e57eac
1 changed files with 0 additions and 5 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue