fix: flow-vogn med læs af anden vare tømmes før pålæsning; AD-navne og egne staldnavne i loggen

This commit is contained in:
2026-10-19 22:07:49 +02:00
parent fdc7601050
commit 2d51732fb6
7 changed files with 164 additions and 2 deletions
+4
View File
@@ -280,6 +280,10 @@ local tickTimer = 0
local function vehicleName(vehicle)
if type(vehicle) ~= "table" then return tostring(vehicle) end
-- traktorer med AutoDrive: AD-navnet (16 Series 8 hedder alle "DEUTZ-FAHR 8280 TTV" i spillet — log 19/10 21:55)
if vehicle.spec_motorized ~= nil and vehicle.ad ~= nil and ADRuns ~= nil and ADRuns.vehicleLabel ~= nil then
return tostring(ADRuns.vehicleLabel(vehicle))
end
return vehicle.getFullName ~= nil and vehicle:getFullName() or tostring(vehicle.configFileName)
end