fix: getProductionPoint defineret før brug i adSources (v1.12.5.0 kastede ved getProducts) (v1.12.6.0)

This commit is contained in:
2026-09-23 11:32:19 +02:00
parent e870c446d8
commit e09daadf93
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -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)