fix: markmarkører genkendes på navnet før markskanningen (v1.62.66)

This commit is contained in:
2026-10-07 23:08:01 +02:00
parent 30d6791c6b
commit d38bdc6b2f
3 changed files with 10 additions and 1 deletions
+8
View File
@@ -690,6 +690,14 @@ local function foreignMarkerIds(adEnv, farmId)
if info.markerId ~= nil then ids[info.markerId] = true end
end
end
-- også efter navnet: markskanningen finder først markørerne et stykke tid efter indlæsning
-- (in-game 7/10 23:07: 'Oil Mill' -> F21 lige efter indlæsning)
if ADFields ~= nil and ADFields.parseMarkerName ~= nil then
for _, marker in pairs(adEnv.ADGraphManager:getMapMarkers()) do
local okName, fieldId = pcall(ADFields.parseMarkerName, marker.name)
if okName and fieldId ~= nil then ids[marker.id] = 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 -1
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<modDesc descVersion="107">
<author>masterdraco</author>
<version>1.62.65.0</version>
<version>1.62.66.0</version>
<title>
<en>AD Smart Pickup</en>
</title>