From a45424c39daee361f7cc2fd7c789d5e2110bf351 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=A4rtner?= Date: Thu, 11 Apr 2019 15:59:17 +0200 Subject: [PATCH] 6.01.00180: run updateWorktools() also after attaching on dollies #3581 --- modDesc.xml | 2 +- toolManager.lua | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/modDesc.xml b/modDesc.xml index a4f5e2b98..021f62a0b 100644 --- a/modDesc.xml +++ b/modDesc.xml @@ -1,6 +1,6 @@ - 6.01.00179 + 6.01.00180 <br>CoursePlay SIX</br> diff --git a/toolManager.lua b/toolManager.lua index 836861a15..7721e98ab 100644 --- a/toolManager.lua +++ b/toolManager.lua @@ -9,6 +9,13 @@ function courseplay:attachImplement(implement) if attacherVehicle.spec_aiVehicle then attacherVehicle.cp.tooIsDirty = true; end; + + if attacherVehicle.getAttacherVehicle then + local firstAttacherVehicle = attacherVehicle:getAttacherVehicle() + if firstAttacherVehicle~= nil and firstAttacherVehicle.spec_aiVehicle then + firstAttacherVehicle.cp.tooIsDirty = true; + end; + end end courseplay:setAttachedCombine(self); end