diff --git a/mods/UI/AdminListUI/src/AdminListUI.lua b/mods/UI/AdminListUI/src/AdminListUI.lua index e3b2c88..aa9f9d2 100644 --- a/mods/UI/AdminListUI/src/AdminListUI.lua +++ b/mods/UI/AdminListUI/src/AdminListUI.lua @@ -48,7 +48,14 @@ local function getFormSpecString(self, playerName, isSelect) if isSelect then ---@type ItemStackString local item = self:getContex(playerName, 'select_item') - local itemSettings = Smc.getItemDefinition(item).settings + local itemDefinition = Smc.getItemDefinitionOrNil(item) + local itemSettings + if itemDefinition == nil then + itemSettings = core.registered_items[item] + else + itemSettings = itemDefinition.settings + end + listForm :itemImage(11, 0.5, 2, 2, item) :areaLabel(11, 4.5, 4, 1, 'Add to inventory:')