diff --git a/modDesc.xml b/modDesc.xml index 5f4bfc238..1e236b8c1 100644 --- a/modDesc.xml +++ b/modDesc.xml @@ -1,6 +1,6 @@ - 5.02.00064 + 5.02.00065 <br>CoursePlay 5</br> diff --git a/toolManager.lua b/toolManager.lua index b91a3b6bf..97b1577de 100644 --- a/toolManager.lua +++ b/toolManager.lua @@ -373,7 +373,7 @@ function courseplay:updateWorkTools(vehicle, workTool, isImplement) courseplay:debug(('%s: adding %q (%q) to cpTrafficCollisionIgnoreList'):format(nameNum(vehicle), nameNum(workTool), tostring(workTool.cp.xmlFileName)), 3); vehicle.cpTrafficCollisionIgnoreList[workTool.rootNode] = true; -- TRAFFIC COLLISION IGNORE LIST (components) - if not isImplement or workTool.cp.hasSpecializationCutter then + if workTool.components ~= nil then courseplay:debug(('%s: adding %q (%q) components to cpTrafficCollisionIgnoreList'):format(nameNum(vehicle), nameNum(workTool), tostring(workTool.cp.xmlFileName)), 3); for i,component in pairs(workTool.components) do vehicle.cpTrafficCollisionIgnoreList[component.node] = true;