fix: getProductionPoint defineret før brug i adSources (v1.12.5.0 kastede ved getProducts) (v1.12.6.0)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<modDesc descVersion="107">
|
||||
<author>masterdraco</author>
|
||||
<version>1.12.5.0</version>
|
||||
<version>1.12.6.0</version>
|
||||
<title>
|
||||
<en>AD Smart Pickup</en>
|
||||
</title>
|
||||
|
||||
Reference in New Issue
Block a user