fix: palleskur-lager aldrig til P/Connect/Wait-markør (v1.62.70)
This commit is contained in:
@@ -849,7 +849,8 @@ function ADSources.findPalletStore(adEnv, vehicle, fillType, excludedPlaceables,
|
||||
end
|
||||
local candidates = {}
|
||||
for _, marker in pairs(adEnv.ADGraphManager:getMapMarkers()) do
|
||||
local source = ADSources.identify(adEnv, marker.id, farmId)
|
||||
-- parkering/kobling/Wait ved skuret er aldrig lagermålet (in-game 7/10: "Connect P Tippevogn 8")
|
||||
local source = not isServiceMarker(marker) and ADSources.identify(adEnv, marker.id, farmId) or nil
|
||||
if source ~= nil and source.kind == "objectStorage" and not (excludedPlaceables ~= nil and excludedPlaceables[source.placeable])
|
||||
and ADSources.objectStorageAccepts(source.placeable, fillType) and ADSources.objectStorageFreeSlots(source.placeable) >= 1 then
|
||||
local wayPoint = adEnv.ADGraphManager:getWayPointById(marker.id)
|
||||
|
||||
Reference in New Issue
Block a user