fix: flow-vogn med læs af anden vare tømmes før pålæsning; AD-navne og egne staldnavne i loggen

This commit is contained in:
2026-10-19 22:07:49 +02:00
parent fdc7601050
commit 2d51732fb6
7 changed files with 164 additions and 2 deletions
+3
View File
@@ -35,7 +35,10 @@ local function call(object, method, ...)
return ok and result or nil
end
-- brugerens eget bygningsnavn (ADNames, fx "129 Kvægstald") før spillets ("Cowbarn with manure Pit")
local function placeableName(placeable)
local own = ADNames ~= nil and ADNames.forPlaceable ~= nil and ADNames.forPlaceable(placeable) or nil
if own ~= nil and own ~= "" then return tostring(own) end
return tostring(call(placeable, "getName") or "?")
end