From 928f8c5479d774a6b3e80feb7d9a6ae1732624ca Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Fri, 1 May 2020 18:48:07 +0100 Subject: [PATCH] never spawn mobs if player within 12 nodes --- api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.lua b/api.lua index 0945f82..1b7947e 100644 --- a/api.lua +++ b/api.lua @@ -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