Fix swshop

Fixes a number transform issue which caused swshop to crash without giving the bought item.
This commit is contained in:
Anavrins
2020-02-08 00:01:36 -05:00
parent 48f142accc
commit d971448c9a

View File

@@ -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