From e09daadf938c6d072c155f39f7bf3e70e9d3f23e Mon Sep 17 00:00:00 2001 From: masterdraco Date: Wed, 23 Sep 2026 11:32:19 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20getProductionPoint=20defineret=20f=C3=B8?= =?UTF-8?q?r=20brug=20i=20adSources=20(v1.12.5.0=20kastede=20ved=20getProd?= =?UTF-8?q?ucts)=20(v1.12.6.0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FS25_ADSmartPickup/adSources.lua | 8 ++++---- FS25_ADSmartPickup/modDesc.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/FS25_ADSmartPickup/adSources.lua b/FS25_ADSmartPickup/adSources.lua index 7564771..be111ff 100644 --- a/FS25_ADSmartPickup/adSources.lua +++ b/FS25_ADSmartPickup/adSources.lua @@ -34,6 +34,10 @@ local function getPlaceableName(placeable, fallback) return fallback end +local function getProductionPoint(placeable) + return placeable ~= nil and placeable.spec_productionPoint ~= nil and placeable.spec_productionPoint.productionPoint or nil +end + -- Varer der KAN stå på paller (spillets fillType-definition: isPalletType eller pallefil). -- Sukker og mel er palletyper, men læsses som bulk ved en fabrik med læssestation — så om -- varen er palle eller bulk afgøres pr. kilde i isPalletAt, ikke her. @@ -72,10 +76,6 @@ function ADSources.isPalletAt(source, fillType) return ADSources.isPalletFillType(fillType) end -local function getProductionPoint(placeable) - return placeable ~= nil and placeable.spec_productionPoint ~= nil and placeable.spec_productionPoint.productionPoint or nil -end - -- Placeable'ns "nærmeste punkt" for kildegenkendelse: pallespawnerens første plads (fabrik) -- eller rodnoden. local function getPlaceableAnchor(placeable) diff --git a/FS25_ADSmartPickup/modDesc.xml b/FS25_ADSmartPickup/modDesc.xml index 5dd4e57..e775e2b 100644 --- a/FS25_ADSmartPickup/modDesc.xml +++ b/FS25_ADSmartPickup/modDesc.xml @@ -1,7 +1,7 @@ masterdraco - 1.12.5.0 + 1.12.6.0 <en>AD Smart Pickup</en>