rules54

Untitled

Jul 16th, 2013
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None | 0 0
  1. local channels = {}
  2. local contents = nil
  3. local file = "disk/mobSpawnerChannels"
  4. local f = io.open(file, "w")
  5. if f:read("*a") ~= nil then
  6.   contents = f:read("*a")
  7.   channels = textutils.unserialize(contents)
  8. end
  9.  
  10. if channels[main] == nil then
  11.   channels[main] = os.getComputerID()
  12. end
  13.  
  14. f:write(textutils.serialize(channels))
  15. f:close()
Advertisement
Add Comment
Please, Sign In to add comment