1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2024-12-25 02:00:21 +01:00

after_spawn fix... thanks GreenDiamond

This commit is contained in:
TenPlus1 2019-01-07 16:25:10 +00:00
parent 78ef560852
commit 0015b01834

View File

@ -6,7 +6,7 @@ local use_cmi = minetest.global_exists("cmi")
mobs = { mobs = {
mod = "redo", mod = "redo",
version = "20181229", version = "20190107",
intllib = S, intllib = S,
invis = minetest.global_exists("invisibility") and invisibility or {}, invis = minetest.global_exists("invisibility") and invisibility or {},
} }
@ -2921,7 +2921,7 @@ function mob_class:mob_activate(staticdata, def, dtime)
-- run after_activate -- run after_activate
if def.after_activate then if def.after_activate then
def:after_activate(staticdata, def, dtime) def:after_activate(self, staticdata, def, dtime)
end end
if use_cmi then if use_cmi then
@ -3294,7 +3294,8 @@ function mobs:spawn_specific(name, nodes, neighbors, min_light, max_light,
end end
minetest.log("action", minetest.log("action",
string.format("[mobs] Chance setting for %s changed to %s (total: %s)", name, chance, aoc)) string.format("[mobs] Chance setting for %s changed to %s (total: %s)",
name, chance, aoc))
end end