fix: Courseplays markpunkt ved høst/slåning ligger i afgrøden — 1.62.191

This commit is contained in:
2026-10-10 09:53:00 +02:00
parent 848127142c
commit bff9caa09d
5 changed files with 23 additions and 4 deletions
+4 -1
View File
@@ -453,7 +453,10 @@ local function newScan(adEnv, entry)
for _, point in ipairs(scan.points) do
push(scan, function()
local ok, index = pcall(FSDensityMapUtil.getFruitTypeIndexAtWorldPos, point.x, point.z)
if ok and type(index) == "number" and index > 0 then vote(scan.fruitVotes, index) end
if ok and type(index) == "number" and index > 0 then
vote(scan.fruitVotes, index)
point.fruit = index -- afgrøden i punktet: Courseplays markpunkt ved høst skal stå i afgrøden
end
end)
end
push(scan, function() ADFields.scanPerFruit(scan) end)