fix: variabel-bredde uden sektioner måles på AI-markører (Unrealistic _MD med fast 50 m) (v1.62.122)
This commit is contained in:
@@ -425,6 +425,9 @@ end
|
||||
-- grundbredden (læssevogn 2,4 m selv om den er sat til 40,8 m).
|
||||
local function variableWidth(object)
|
||||
if object.getVariableWorkWidth == nil then return nil end
|
||||
-- uden sektioner (fx vores _MD-udgave af Unrealistic med fast bredde) er AI-markørerne den rigtige bredde
|
||||
local spec = object.spec_variableWorkWidth
|
||||
if spec ~= nil and (type(spec.sections) ~= "table" or #spec.sections == 0) then return nil end
|
||||
local okLeft, left, _, leftValid = pcall(object.getVariableWorkWidth, object, true)
|
||||
local okRight, right, _, rightValid = pcall(object.getVariableWorkWidth, object)
|
||||
if okLeft and okRight and leftValid and rightValid and type(left) == "number" and type(right) == "number" then
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<modDesc descVersion="107">
|
||||
<author>masterdraco</author>
|
||||
<version>1.62.121.0</version>
|
||||
<version>1.62.122.0</version>
|
||||
<title>
|
||||
<en>AD Smart Pickup</en>
|
||||
</title>
|
||||
|
||||
Reference in New Issue
Block a user