Update creatures mob engine to Git commit 035bbbb...
https://github.com/AntumMT/mod-creatures/tree/035bbbb
This commit is contained in:
parent
cb41d296a0
commit
72025aad53
@ -82,7 +82,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
|
||||
* [dinosaurs_aggressive][] -- version: [874f299 Git][ver.dinosaurs_aggressive] *2017-07-27*
|
||||
* velociraptor ([LGPL][lic.lgpl2.1] / [CC BY-SA][lic.ccbysa3.0]) -- forked from *mobs_farlands* (part of [farlands][] sub-game)
|
||||
* engine/
|
||||
* [creatures][] ([zlib][lic.creatures] / [CC BY-SA][lic.ccbysa3.0]) -- version: [revived e3244da Git][ver.creatures] *2021-05-03*
|
||||
* [creatures][] ([zlib][lic.creatures] / [CC BY-SA][lic.ccbysa3.0]) -- version: [revived 035bbbb Git][ver.creatures] *2021-05-03*
|
||||
* [mobkit][] ([MIT][lic.mobkit]) -- version: [ddea141 Git][ver.mobkit] *2021-02-01*
|
||||
* [mobs_redo][] ([MIT][lic.mobs_redo] / [CC BY][lic.ccby3.0] / [CC0][lic.cc0]) -- version: [f6e16a5 Git][ver.mobs_redo] *2021-04-11* ([patched][patch.mobs_redo])
|
||||
* [folks][] ([GPL][lic.gpl3.0]) -- version: [0.2.0][ver.folks] *2021-02-23*
|
||||
@ -497,7 +497,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
|
||||
[ver.compassgps]: https://github.com/Kilarin/compassgps/tree/567b95f
|
||||
[ver.crafting_bench]: https://github.com/minetest-mods/crafting_bench/tree/69083ed
|
||||
[ver.craftguide]: https://github.com/minetest-mods/craftguide/tree/f379998
|
||||
[ver.creatures]: https://github.com/AntumMT/mod-creatures/tree/e3244da
|
||||
[ver.creatures]: https://github.com/AntumMT/mod-creatures/tree/035bbbb
|
||||
[ver.crops]: https://github.com/minetest-mods/crops/tree/v1
|
||||
[ver.currency]: https://gitlab.com/VanessaE/currency/tree/2021-01-30
|
||||
[ver.deploy_nodes]: https://github.com/cornernote/minetest-deploy_nodes/tree/b67e162
|
||||
|
@ -381,7 +381,7 @@ function creatures.register_spawn(spawn_def)
|
||||
local max
|
||||
if active_object_count_wider > (spawn_def.max_number or 1) then
|
||||
local mates_num = #creatures.findTarget(nil, pos, 16, "mate", spawn_def.mob_name, true)
|
||||
if (mates_num or 0) >= spawn_def.max_number then
|
||||
if not spawn_def.max_number or (mates_num or 0) >= spawn_def.max_number then
|
||||
return
|
||||
else
|
||||
max = spawn_def.max_number - mates_num
|
||||
|
Loading…
x
Reference in New Issue
Block a user