Advertisement
Hoolaf

lib/updates/src

Sep 15th, 2017
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | None | 0 0
  1. local turtleSrc = { turtleLib_move = "2aYnP3GV", turtleLib_fuel = "0vhBA4Xs", turtleLib_nav = "9UJSGZ3S" }
  2. local libSrc = {}
  3. local rootSrc = {}
  4. local all = { turtle = turtleSrc, lib = libSrc, root = rootSrc }
  5.  
  6. function getTable (filename)
  7.   if tostring(filename) == "all" then return all end
  8.  
  9.   for k, v in pairs(all) do
  10.     if tostring(filename) == tostring(k) then return v end
  11.   end
  12. end
  13.  
  14. function init ()
  15.   local src = { getTable = getTable }
  16.   return src
  17. end
  18.  
  19. src = init()
  20. return src
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement