From 00fe92c2300b46bb28ca80f027f0ff2f932fd9a7 Mon Sep 17 00:00:00 2001 From: Vanic Date: Sat, 30 Aug 2025 15:43:55 +0000 Subject: [PATCH] Item: emmylua warning fix --- mods/CORE/Item/src/Item.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/CORE/Item/src/Item.lua b/mods/CORE/Item/src/Item.lua index c0efbc3..8c82577 100644 --- a/mods/CORE/Item/src/Item.lua +++ b/mods/CORE/Item/src/Item.lua @@ -1,6 +1,7 @@ ---@class Item ---@field itemDef Item.ItemDefinition ---@field luantiDef table +---@field getVisual fun(): string local Item = {} ---@param itemDef Item.ItemDefinition @@ -49,6 +50,7 @@ function Item:new(itemDef) registerFlatItem(luantiDef) end + ---@return string function instance:getVisual() return visual end @@ -58,5 +60,4 @@ function Item:new(itemDef) return instance end - return Item