Guest User

exemple

a guest
Oct 29th, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1.  
  2. setfenv(1,getfenv(2)) --fuck os.loadAPI()
  3.  
  4. local oper = {}
  5. for k,v in pairs(peripheral) do oper[k]=v end
  6.  
  7. peripheral.wrap = function(side)
  8.   if side=="lip/WI" then --ici
  9.     return lip.WorldInterface
  10.   end --etc..
  11.   return oper.wrap(side)
  12. end
  13.  
  14. peripheral.find = function(periph)
  15.   local pr = oper.find(periph)
  16.   if pr then return pr end
  17.   if periph=="WorldInterface" then
  18.     return lip.WorldInterface
  19.   end
  20. end
Advertisement
Add Comment
Please, Sign In to add comment