From 69be7325be00c5cc56138228b667b5c2e20947ec Mon Sep 17 00:00:00 2001 From: ubq323 Date: Fri, 30 Dec 2022 00:00:45 +0000 Subject: shop --- shop.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'shop.lua') diff --git a/shop.lua b/shop.lua index 5e34abb..7f986c9 100644 --- a/shop.lua +++ b/shop.lua @@ -92,12 +92,11 @@ function run_shop() while true do msgtxt = assert(ws.receive(),"ws error") msg = textutils.unserializeJSON(msgtxt) - if msg.type ~= "keepalive" then print(msgtxt) end if msg.type == "response" and msg.responding_to_type == "me" then our_addr = msg.address.address end if msg.type == "event" and msg.event == "transaction" then - require"cc.pretty".pretty_print(proctrans(msg.transaction)) + proctrans(msg.transaction) end end end -- cgit v1.2.3