summaryrefslogtreecommitdiff
path: root/shop.lua
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2022-12-29 20:28:19 +0000
committerubq323 <ubq323@ubq323.website>2022-12-29 20:28:19 +0000
commitee7f672ce192be126c02248415aae320dd3f0532 (patch)
treee2476e189cef176c7e2284219b041c5522ea303c /shop.lua
parent15d260214ffd1deb558cf8dd50dc1d0edc8cc6b7 (diff)
shop
Diffstat (limited to 'shop.lua')
-rw-r--r--shop.lua4
1 files 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