From 8b826461c41c1d4e2aa555961da7727a5c65b848 Mon Sep 17 00:00:00 2001 From: Birger Skogeng Pedersen Date: Tue, 29 Sep 2020 22:18:41 +0200 Subject: [PATCH] Re-update group lead in task group checkPosAdvance Fixes #117 --- autogft/taskgroup.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/autogft/taskgroup.lua b/autogft/taskgroup.lua index 5bcc338..b484424 100644 --- a/autogft/taskgroup.lua +++ b/autogft/taskgroup.lua @@ -153,6 +153,7 @@ function autogft_TaskGroup:advance() local prevPosX = prevPos.x local prevPosZ = prevPos.z local function checkPosAdvance() + self:updateGroupLead() if self.groupLead then local currentPos = self.groupLead:getPosition().p if currentPos.x == prevPosX and currentPos.z == prevPosZ then