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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user