mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2025-01-11 18:30:21 +01:00
never spawn mobs if player within 12 nodes
This commit is contained in:
parent
32e8d069f7
commit
928f8c5479
2
api.lua
2
api.lua
@ -3655,7 +3655,7 @@ function mobs:spawn_specific(name, nodes, neighbors, min_light, max_light,
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- only spawn away from player
|
-- only spawn away from player
|
||||||
local objs = minetest.get_objects_inside_radius(pos, 8)
|
local objs = minetest.get_objects_inside_radius(pos, 12)
|
||||||
|
|
||||||
for n = 1, #objs do
|
for n = 1, #objs do
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user