fix: fabrik fundet på afstand får produktionspunktets læssestation; bulk-outputs regnes ikke som paller når markøren ikke rammer triggeren (v1.12.5.0)
This commit is contained in:
@@ -64,7 +64,9 @@ function ADSources.isPalletAt(source, fillType)
|
||||
elseif source.kind == "objectStorage" then
|
||||
return true
|
||||
end
|
||||
if stationSupports(source.station, fillType) then
|
||||
local productionPoint = getProductionPoint(source.placeable)
|
||||
local loadingStation = productionPoint ~= nil and productionPoint.loadingStation or nil
|
||||
if stationSupports(source.station, fillType) or stationSupports(loadingStation, fillType) then
|
||||
return false
|
||||
end
|
||||
return ADSources.isPalletFillType(fillType)
|
||||
@@ -135,7 +137,9 @@ function ADSources.identify(adEnv, wayPointId, farmId)
|
||||
-- til pallespawneren; dernæst objektlagre.
|
||||
local factory = findPlaceableNear(wayPoint, farmId, isProductionPoint)
|
||||
if factory ~= nil then
|
||||
return {kind = "factory", placeable = factory, station = nil, wayPointId = wayPointId, name = getPlaceableName(factory, markerName)}
|
||||
-- produktionspunktets egen læssestation (bulk-outputs), også når markøren ikke rammer triggeren
|
||||
local loadingStation = getProductionPoint(factory).loadingStation
|
||||
return {kind = "factory", placeable = factory, station = loadingStation, wayPointId = wayPointId, name = getPlaceableName(factory, markerName)}
|
||||
end
|
||||
local storage = findPlaceableNear(wayPoint, farmId, isObjectStorage)
|
||||
if storage ~= nil then
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<modDesc descVersion="107">
|
||||
<author>masterdraco</author>
|
||||
<version>1.12.4.0</version>
|
||||
<version>1.12.5.0</version>
|
||||
<title>
|
||||
<en>AD Smart Pickup</en>
|
||||
</title>
|
||||
|
||||
Reference in New Issue
Block a user