From f3c40045009090a3c785d04c3bb84192ce3d7784 Mon Sep 17 00:00:00 2001 From: Layla Manley Date: Sun, 8 Oct 2023 04:17:33 -0400 Subject: [PATCH] iteration --- lib/lns.lua | 3 ++- lum.lua | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/lns.lua b/lib/lns.lua index 307d40c..2f702d7 100644 --- a/lib/lns.lua +++ b/lib/lns.lua @@ -56,7 +56,8 @@ function lookup(remote_hostname) ["hostname"] = remote_hostname } - rednet.send(server(), data, "lns") + local lns_server_id = server() + rednet.send(lns_server_id, data, "lns") while true do id, msg = rednet.receive("lns") diff --git a/lum.lua b/lum.lua index f27ea40..f16d4fe 100644 --- a/lum.lua +++ b/lum.lua @@ -21,7 +21,7 @@ elseif action == "remove" then lum.remove(package) io.write("Done!\n") elseif action == "version" then - print("Lum version 0.1.0") + print("0.1.0") else io.write("Usage: lum \n") end \ No newline at end of file