mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2024-12-25 10:10:21 +01:00
after_spawn fix... thanks GreenDiamond
This commit is contained in:
parent
78ef560852
commit
0015b01834
7
api.lua
7
api.lua
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user