Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local turtleSrc = { turtleLib_move = "2aYnP3GV", turtleLib_fuel = "0vhBA4Xs", turtleLib_nav = "9UJSGZ3S" }
- local libSrc = {}
- local rootSrc = {}
- local all = { turtle = turtleSrc, lib = libSrc, root = rootSrc }
- function getTable (filename)
- if tostring(filename) == "all" then return all end
- for k, v in pairs(all) do
- if tostring(filename) == tostring(k) then return v end
- end
- end
- function init ()
- local src = { getTable = getTable }
- return src
- end
- src = init()
- return src
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement