trivial a -> an in comments

This commit is contained in:
Luke aka SwissalpS 2024-09-18 13:50:33 +02:00 committed by SmallJoker
parent c2e3d073be
commit 6fd05bc95e
2 changed files with 6 additions and 7 deletions

@ -92,7 +92,7 @@ local function findFirstUnusedIndex(t)
return i
end
--- Add a area.
--- Add an area.
-- @return The new area's ID.
function areas:add(owner, name, pos1, pos2, parent)
local id = findFirstUnusedIndex(self.areas)
@ -118,8 +118,8 @@ function areas:add(owner, name, pos1, pos2, parent)
return id
end
--- Remove a area, and optionally its children recursively.
-- If a area is deleted non-recursively the children will
--- Remove an area, and optionally its children recursively.
-- If an area is deleted non-recursively the children will
-- have the removed area's parent as their new parent.
function areas:remove(id, recurse)
if recurse then
@ -136,7 +136,6 @@ function areas:remove(id, recurse)
-- The subarea parent will be niled out if the
-- removed area does not have a parent
self.areas[cid].parent = parent
end
end
@ -172,7 +171,7 @@ function areas:move(id, area, pos1, pos2)
end
end
-- Checks if a area between two points is entirely contained by another area.
-- Checks if an area between two points is entirely contained by another area.
-- Positions must be sorted.
function areas:isSubarea(pos1, pos2, id)
local area = self.areas[id]
@ -291,7 +290,7 @@ areas:registerProtectionCondition(function(pos1, pos2, name)
end
end)
-- Given a id returns a string in the format:
-- Given an id returns a string in the format:
-- "name [id]: owner (x1, y1, z1) (x2, y2, z2) -> children"
function areas:toString(id)
local area = self.areas[id]

@ -4,7 +4,7 @@ local S = minetest.get_translator("areas")
-- permission to use those commands and you don't have
-- /area_pos{1,2} [X Y Z|X,Y,Z].
-- Since this is mostly copied from WorldEdit it is mostly
-- licensed under the AGPL. (select_area is a exception)
-- licensed under the AGPL. (select_area is an exception)
areas.marker1 = {}
areas.marker2 = {}