From ee7f672ce192be126c02248415aae320dd3f0532 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Thu, 29 Dec 2022 20:28:19 +0000 Subject: shop --- shop.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shop.lua b/shop.lua index d5e5226..1ded4f6 100644 --- a/shop.lua +++ b/shop.lua @@ -14,8 +14,8 @@ sendws { type="get_subscription_level" } while true do msgtxt = assert(ws.receive(),"ws error") msg = textutils.unserializeJSON(msgtxt) - print(c.type) - if c.type ~= "keepalive" then print(msgtxt) end + print(msg.type) + if msg.type ~= "keepalive" then print(msgtxt) end end -- cgit v1.2.3