mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2025-03-11 06:07:44 +01:00
Localize minetest.get_node()
This commit is contained in:
parent
ce993654f3
commit
8cabee0621
1 changed files with 3 additions and 3 deletions
|
@ -1079,17 +1079,17 @@ if mobs_spawn then
|
|||
if amount_to_spawn > 1 then
|
||||
if logging then
|
||||
minetest.log("action", "[mcl_mobs] A group of " ..amount_to_spawn .. " " .. mob_def.name ..
|
||||
" mob spawns on " ..minetest.get_node(vector.offset(spawning_position,0,-1,0)).name ..
|
||||
" mob spawns on " ..get_node(vector.offset(spawning_position,0,-1,0)).name ..
|
||||
" at " .. minetest.pos_to_string(spawning_position, 1)
|
||||
)
|
||||
end
|
||||
return spawn_group(spawning_position,mob_def,{minetest.get_node(vector.offset(spawning_position,0,-1,0)).name}, amount_to_spawn, state)
|
||||
return spawn_group(spawning_position,mob_def,{get_node(vector.offset(spawning_position,0,-1,0)).name}, amount_to_spawn, state)
|
||||
end
|
||||
end
|
||||
|
||||
if logging then
|
||||
minetest.log("action", "[mcl_mobs] Mob " .. mob_def.name .. " spawns on " ..
|
||||
minetest.get_node(vector.offset(spawning_position,0,-1,0)).name .." at "..
|
||||
get_node(vector.offset(spawning_position,0,-1,0)).name .." at "..
|
||||
minetest.pos_to_string(spawning_position, 1)
|
||||
)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue