From a49e66dbd3344d2c053ce6aba57bbd68ad4247aa Mon Sep 17 00:00:00 2001 From: cora Date: Sun, 17 Jul 2022 23:42:34 +0200 Subject: [PATCH] Detection radius is 20 according to the wiki --- mods/ENTITIES/mobs_mc/parrot.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ENTITIES/mobs_mc/parrot.lua b/mods/ENTITIES/mobs_mc/parrot.lua index 850fac7c3..80a5b9318 100644 --- a/mods/ENTITIES/mobs_mc/parrot.lua +++ b/mods/ENTITIES/mobs_mc/parrot.lua @@ -40,7 +40,7 @@ end local function check_mobimitate(self,dtime) if not self._mobimitate_timer or self._mobimitate_timer > 30 then self._mobimitate_timer = 0 - for _,o in pairs(minetest.get_objects_inside_radius(self.object:get_pos(),32)) do + for _,o in pairs(minetest.get_objects_inside_radius(self.object:get_pos(),20)) do local l = o:get_luaentity() if l and l.is_mob and l.name ~= "mobs_mc:parrot" then imitate_mob_sound(self,l)