From 642e6a67d8055197d9394c159f5202ea52ce09c1 Mon Sep 17 00:00:00 2001 From: Ramiro Bou Date: Tue, 24 Dec 2013 15:45:13 -0200 Subject: [PATCH] Using server ID instead of server distance --- darksecurity/client.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/darksecurity/client.lua b/darksecurity/client.lua index 77c05ce..06e63fd 100644 --- a/darksecurity/client.lua +++ b/darksecurity/client.lua @@ -66,7 +66,7 @@ function keycard_mainProgram() S, M, D = rednetReceiveE(2) - if M == "#granted" and D == config.serverDistance then + if M == "#granted" and S == config.serverID then disk.eject(eventinfo) rs.setOutput(config.doorside, true) sleep(config.pulseTime) @@ -107,7 +107,7 @@ function userandpassword_mainProgram() print("\nWrong or no response from server.") sleep(2) else - if MES == "#granted" and SD == config.serverDistance then + if MES == "#granted" and ID == config.serverID then dark.printC("Correct", 5, 5) rs.setOutput(config.doorside, true) sleep(config.pulseTime) @@ -257,4 +257,4 @@ elseif config.tType == "both" then parallel.waitForAll(userandpassword_mainProgram, keycard_mainProgram, stealthUpdate) end -os.pullEvent = oldEvent \ No newline at end of file +os.pullEvent = oldEvent