From 90321ee57890d5db841623da61e1159cdaee83c3 Mon Sep 17 00:00:00 2001 From: cora Date: Fri, 11 Nov 2022 19:20:20 +0100 Subject: [PATCH] Fix leftover local do_attack call --- 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 37ba3186ef..05a2b00c5c 100644 --- a/mods/ENTITIES/mcl_mobs/combat.lua +++ b/mods/ENTITIES/mcl_mobs/combat.lua @@ -183,7 +183,7 @@ function mob_class:smart_mobs(s, p, dist, dtime) self.path.way = minetest.find_path(s, p1, 16, jumpheight, dropheight, "A*_noprefetch") self.state = "" - do_attack(self, self.attack) + self:do_attack(self.attack) -- no path found, try something else if not self.path.way then