Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local channels = {}
- local contents = nil
- local file = "disk/mobSpawnerChannels"
- local f = io.open(file, "w")
- if f:read("*a") ~= nil then
- contents = f:read("*a")
- channels = textutils.unserialize(contents)
- end
- if channels[main] == nil then
- channels[main] = os.getComputerID()
- end
- f:write(textutils.serialize(channels))
- f:close()
Advertisement
Add Comment
Please, Sign In to add comment