From d971448c9a8c426df5713c04e5d8ef4ecd63e105 Mon Sep 17 00:00:00 2001 From: Anavrins Date: Sat, 8 Feb 2020 00:01:36 -0500 Subject: [PATCH] Fix swshop Fixes a number transform issue which caused swshop to crash without giving the bought item. --- swshop/swshop.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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