From 3697ef806922d17c54c3e324f291beed4aa7f1d8 Mon Sep 17 00:00:00 2001 From: gldrk Date: Sat, 14 Jan 2023 01:28:35 +0300 Subject: [PATCH] Fix summoning friends for mobs --- mods/ENTITIES/mcl_mobs/combat.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ENTITIES/mcl_mobs/combat.lua b/mods/ENTITIES/mcl_mobs/combat.lua index 1886c7ccc..9c9fd7626 100644 --- a/mods/ENTITIES/mcl_mobs/combat.lua +++ b/mods/ENTITIES/mcl_mobs/combat.lua @@ -776,7 +776,7 @@ function mob_class:on_punch(hitter, tflp, tool_capabilities, dir) obj:do_attack(hitter) elseif type(obj.group_attack) == "table" then for i=1, #obj.group_attack do - if obj.name == obj.group_attack[i] then + if obj.group_attack[i] == self.name then obj._aggro = true obj:do_attack(hitter) break