mirror of
https://github.com/minetest-mods/areas.git
synced 2025-01-28 02:40:17 +01:00
stylistic fixes etc
This commit is contained in:
parent
ea0d14d312
commit
5349738fc6
9
api.lua
9
api.lua
@ -6,7 +6,8 @@ areas.registerHudHandler = function(handler)
|
||||
end
|
||||
|
||||
-- Generalized call to registered handlers to add their proeciton labels to the areas list
|
||||
local detect_extra_protection = function(pos, area_list)
|
||||
function areas:getRegisteredProtections(pos)
|
||||
local area_list = {}
|
||||
if #protection_detectors <= 0 then
|
||||
return area_list
|
||||
end
|
||||
@ -18,12 +19,6 @@ local detect_extra_protection = function(pos, area_list)
|
||||
return area_list
|
||||
end
|
||||
|
||||
function areas:getRegisteredProtections(pos)
|
||||
local res = {}
|
||||
res = detect_extra_protection(pos, res)
|
||||
return res
|
||||
end
|
||||
|
||||
--- Returns a list of areas that include the provided position.
|
||||
function areas:getAreasAtPos(pos)
|
||||
local res = {}
|
||||
|
Loading…
Reference in New Issue
Block a user