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

Commit

Permalink
6.03.00030 Temporary band-aid for #6728
Browse files Browse the repository at this point in the history
Draft release, if 29 is working for you, don't upgrade to this.
  • Loading branch information
pvaiko committed Jan 25, 2021
1 parent 8def625 commit 8b6a74f
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="47">
<version>6.03.00029</version>
<version>6.03.00030</version>
<author><![CDATA[Courseplay.devTeam]]></author>
<title><!-- en=English de=German fr=French es=Spanish ru=Russian pl=Polish it=Italian br=Brazilian-Portuguese cs=Chinese(Simplified) ct=Chinese(Traditional) cz=Czech nl=Netherlands hu=Hungary jp=Japanese kr=Korean pt=Portuguese ro=Romanian tr=Turkish -->
<en>CoursePlay SIX</en>
Expand Down
7 changes: 7 additions & 0 deletions toolManager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,13 @@ end;

-- UPDATE WORKTOOL DATA
function courseplay:updateWorkTools(vehicle, workTool, isImplement)

-- temporary band aid until we figure out what exactly is causing this
if not vehicle.cp.mode then
vehicle.cp.mode = courseplay.MODE_TRANSPORT
courseplay.infoVehicle(vehicle, ' no CP mode set, worktool %s, forcing mode 5', nameNum(workTool))
end

if not isImplement then
cpPrintLine(6, 3);
courseplay:debug(('%s: updateWorkTools(%s, %q, isImplement=false) (mode=%d)'):format(nameNum(vehicle),tostring(vehicle.name), nameNum(workTool), vehicle.cp.mode), 6);
Expand Down

0 comments on commit 8b6a74f

Please sign in to comment.