AdminListUI: Correct processing of items without special fields.

This commit is contained in:
Van
2026-04-21 21:48:34 +03:00
parent 7c7a318d22
commit 1b5d122205

View File

@@ -56,8 +56,8 @@ local function getFormSpecString(self, playerName, isSelect)
:button(14, 5,3, 1, 'admin_commands:list_add_item', ''..tostring(itemDef.stack_max))
:areaLabel(14.5, 0.5, 6, 4,
item..'\n\n'..
itemDef._title..'\n'..
itemDef._description)
(itemDef._title or itemDef.description)..'\n'..
(itemDef._description or ''))
end
return listForm:toString()