SHARE
TWEET

Untitled

a guest Jun 16th, 2018 4 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function areas:canInteract(pos, name)
  2.         if minetest.check_player_privs(name, self.adminPrivs) then
  3.                 return true
  4.         end
  5.  
  6.         local owned = false
  7.         for _, area in pairs(self:getAreasAtPos(pos)) do
  8.                 if area.owner == name or area.open then
  9.                         return true
  10.                 else
  11.                         owned = true
  12.                 end
  13.         end
  14.  
  15.         return not owned
  16. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top