Posted 15 December 2012 - 03:51 PM
Outdated! Go to EnderOS for more
currentVersion = "v5.3"
if currentVersion ~= "v5.3" then
reset()
print("An update is available for CraftLock!")
term.setCursorPos(1,2)
print("Would you like to update? Y/N")
rawread()
end
Yes I am aware that code currently does nothing. I am working on an automatic update checker using the Http api and that code is just as you would say, a "placeholder" so I wouldn't forget.As with all locks, it can be bypassed if a player can put a disk drive next to the computer.
Why do you sleep for 8 seconds?
Did you know this code does nothing?currentVersion = "v5.3" if currentVersion ~= "v5.3" then reset() print("An update is available for CraftLock!") term.setCursorPos(1,2) print("Would you like to update? Y/N") rawread() end