Skip to content

Commit

Permalink
Re-update group lead in task group checkPosAdvance
Browse files Browse the repository at this point in the history
Fixes #117
  • Loading branch information
birgersp committed Sep 29, 2020
1 parent becb4ae commit 8b82646
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions autogft/taskgroup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8b82646

Please sign in to comment.