Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Commit

Permalink
6.01.00180: run updateWorktools() also after attaching on dollies
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasGaertner committed Apr 11, 2019
1 parent 1ba8289 commit a45424c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modDesc.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<modDesc descVersion="40">
<version>6.01.00179</version>
<version>6.01.00180</version>
<author><![CDATA[Courseplay.devTeam]]></author>
<title>
<br>CoursePlay SIX</br>
Expand Down
7 changes: 7 additions & 0 deletions toolManager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a45424c

Please sign in to comment.