Skip to content

Commit

Permalink
Upd areas: get only translations from upstream. Relates to #1188, #328
Browse files Browse the repository at this point in the history
  • Loading branch information
alek13 committed Nov 22, 2023
1 parent 28263e2 commit bc53416
Show file tree
Hide file tree
Showing 14 changed files with 739 additions and 384 deletions.
6 changes: 3 additions & 3 deletions mods/_various/areas/api.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ end
-- Note that this fails and returns false when the specified area is fully
-- owned by the player, but with multiple protection zones, none of which
-- cover the entire checked area.
-- @param name (optional) player name. If not specified checks for any intersecting areas.
-- @param allow_open Whether open areas should be counted as is they didn't exist.
-- @param name (optional) Player name. If not specified checks for any intersecting areas.
-- @param allow_open Whether open areas should be counted as if they didn't exist.
-- @return Boolean indicating whether the player can interact in that area.
-- @return Un-owned intersecting area id, if found.
-- @return Un-owned intersecting area ID, if found.
function areas:canInteractInArea(pos1, pos2, name, allow_open)
if name and minetest.check_player_privs(name, self.adminPrivs) then
return true
Expand Down
Loading

0 comments on commit bc53416

Please sign in to comment.