From 0ba687a027b4202d44671efa929ce42387b9f709 Mon Sep 17 00:00:00 2001 From: osmarks Date: Fri, 30 Jan 2026 09:22:10 +0000 Subject: [PATCH] Fix it betterer --- computercraft/AFLKHASKJFHasuifhasf.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/computercraft/AFLKHASKJFHasuifhasf.lua b/computercraft/AFLKHASKJFHasuifhasf.lua index 774086f..2d28cc3 100644 --- a/computercraft/AFLKHASKJFHasuifhasf.lua +++ b/computercraft/AFLKHASKJFHasuifhasf.lua @@ -138,8 +138,8 @@ while true do local p1, p2 = trilaterate(fixes[1], fixes[2], fixes[3]) if p1 and p2 then local pos = narrow(p1, p2, fixes[4]) - if channel == gps.CHANNEL_GPS and message == "PING" then - write_to("gps", timestamp(), ("%d: %.0f %.0f %.0f"):format(reply_channel, pos.x, pos.y, pos.z)) + if channel == gps.CHANNEL_GPS then + if message == "PING" then write_to("gps", timestamp(), ("%d: %.0f %.0f %.0f"):format(reply_channel, pos.x, pos.y, pos.z)) end elseif channel == 999 then local status, label = "?", "?" if type(message) == "table" then status = tostring(message.status) label = tostring(message.label) end @@ -154,3 +154,4 @@ while true do end +