diff --git a/swshop/swshop.lua b/swshop/swshop.lua index 391b6a8..0bb07ab 100644 --- a/swshop/swshop.lua +++ b/swshop/swshop.lua @@ -44,7 +44,7 @@ local function getItemDetails(item) t = textutils.unserialize(t) for key, v in pairs(t) do if v.name == item then - return key, v.price + return key, tonumber(v.price) end end end