Skip to content

Commit

Permalink
add public xp_redo.get_area_xp_limits(id) (#70)
Browse files Browse the repository at this point in the history
Mods like [glider] and [hangglider] can't be satisfied
with minetest.is_protected() as they don't want to build
but area might be FLAK protected against any who don't
have certain amount of XP.
  • Loading branch information
SwissalpS authored Apr 17, 2024
1 parent 8324bbe commit 143c088
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions areas.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
-- id -> { max=1000, min=100 }
local xp_areas = {}

function xp_redo.get_area_xp_limits(id)
return xp_areas[id] or {}
end

-- protection check
local old_is_protected = minetest.is_protected
function minetest.is_protected(pos, name)
Expand Down

0 comments on commit 143c088

Please sign in to comment.