fix(silo): varer = læssestationens pulje (tom mælketank med fuld pulje viste ingen mælk -> noProducts); sammenlægning af kilder kun for siloer, ikke staldes mælke/gyllepunkter (v1.17.4.0)

This commit is contained in:
2026-09-24 04:01:26 +02:00
parent edf6805cac
commit c0f523700e
7 changed files with 51 additions and 4 deletions
+5 -1
View File
@@ -64,7 +64,11 @@ end
-- Lagrene en kildes læssestation trækker fra (FS25: sourceStorages = {[storage] = storage}); nil = ukendt.
local function sourceStorages(source)
local station = source ~= nil and source.station or nil
-- kun siloer: en stalds mælke- og gyllepunkt deler også lager, men er forskellige læssepunkter
if source == nil or source.kind ~= "silo" then
return nil
end
local station = source.station
if station == nil or type(station.sourceStorages) ~= "table" then
return nil
end