Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions darksecurity/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -257,4 +257,4 @@ elseif config.tType == "both" then
parallel.waitForAll(userandpassword_mainProgram, keycard_mainProgram, stealthUpdate)
end

os.pullEvent = oldEvent
os.pullEvent = oldEvent