mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2025-01-24 16:20:19 +01:00
harden spawn log message
This commit is contained in:
parent
ce47b81da5
commit
bf79985730
14
api.lua
14
api.lua
@ -11,7 +11,7 @@ local use_mc2 = minetest.get_modpath("mcl_core")
|
|||||||
-- Global
|
-- Global
|
||||||
mobs = {
|
mobs = {
|
||||||
mod = "redo",
|
mod = "redo",
|
||||||
version = "20231015",
|
version = "20231022",
|
||||||
translate = S,
|
translate = S,
|
||||||
invis = minetest.global_exists("invisibility") and invisibility or {},
|
invis = minetest.global_exists("invisibility") and invisibility or {},
|
||||||
node_snow = minetest.registered_aliases["mapgen_snow"]
|
node_snow = minetest.registered_aliases["mapgen_snow"]
|
||||||
@ -4092,14 +4092,14 @@ function mobs:spawn_specific(name, nodes, neighbors, min_light, max_light, inter
|
|||||||
|
|
||||||
local mob = minetest.add_entity(pos, name)
|
local mob = minetest.add_entity(pos, name)
|
||||||
|
|
||||||
-- print("[mobs] Spawned " .. name .. " at "
|
|
||||||
-- .. minetest.pos_to_string(pos) .. " on "
|
|
||||||
-- .. node.name .. " near " .. neighbors[1])
|
|
||||||
|
|
||||||
if mob_log_spawn then
|
if mob_log_spawn then
|
||||||
|
|
||||||
minetest.log("[MOBS] Spawned " .. name .. " at "
|
minetest.log(
|
||||||
.. minetest.pos_to_string(pos))
|
"[MOBS] Spawned "
|
||||||
|
.. (name or "")
|
||||||
|
.. " at "
|
||||||
|
.. (pos and minetest.pos_to_string(pos)) or ""
|
||||||
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
if on_spawn and mob then
|
if on_spawn and mob then
|
||||||
|
Loading…
Reference in New Issue
Block a user