From a3d30c15c2335a55f9c45eb4694ada39fc9d1c57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=A4rtner?= Date: Thu, 15 Mar 2018 22:52:28 +0100 Subject: [PATCH] 5.02.0065: fixed traffic issue all components of all implements will now be added to the trafficCollisionIgnore list #2639 --- modDesc.xml | 2 +- toolManager.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;