1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2024-12-24 01:30:22 +01:00

never spawn mobs if player within 12 nodes

This commit is contained in:
TenPlus1 2020-05-01 18:48:07 +01:00
parent 32e8d069f7
commit 928f8c5479

View File

@ -3655,7 +3655,7 @@ function mobs:spawn_specific(name, nodes, neighbors, min_light, max_light,
end
-- 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