fix: markmarkører bruges aldrig som salgssted (v1.62.61)
This commit is contained in:
@@ -680,9 +680,16 @@ local function isServiceMarker(marker)
|
||||
return ADFieldWork ~= nil and ADFieldWork.isServiceMarker ~= nil and ADFieldWork.isServiceMarker(marker) == true
|
||||
end
|
||||
|
||||
-- Andre (ikke-salgs) bygningers læsse- og aflæsningsmarkører (palleskur, silo, stald, fabrik): {[waypoint-id] = true}.
|
||||
-- Andre (ikke-salgs) bygningers læsse- og aflæsningsmarkører (palleskur, silo, stald, fabrik) og markernes markører
|
||||
-- (in-game 7/10: 'Oil Mill' uden egen markør fik markmarkøren "F21"): {[waypoint-id] = true}.
|
||||
local function foreignMarkerIds(adEnv, farmId)
|
||||
local ids = {}
|
||||
if ADFields ~= nil and ADFields.list ~= nil then
|
||||
local okFields, fields = pcall(ADFields.list)
|
||||
for _, info in ipairs(okFields and fields or {}) do
|
||||
if info.markerId ~= nil then ids[info.markerId] = true end
|
||||
end
|
||||
end
|
||||
if ADBuildings == nil or ADBuildings.list == nil then return ids end
|
||||
local ok, buildings = pcall(ADBuildings.list, adEnv, farmId)
|
||||
for _, building in ipairs(ok and buildings or {}) do
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<modDesc descVersion="107">
|
||||
<author>masterdraco</author>
|
||||
<version>1.62.60.0</version>
|
||||
<version>1.62.61.0</version>
|
||||
<title>
|
||||
<en>AD Smart Pickup</en>
|
||||
</title>
|
||||
|
||||
Reference in New Issue
Block a user