store radius and max_shares in global

This commit is contained in:
tenplus1 2025-01-25 15:09:20 +00:00
commit e4ea32efa3
4 changed files with 37 additions and 51 deletions

View file

@ -106,14 +106,10 @@ minetest.register_abm({
end
})
-- get protection radius (max 30)
local r = tonumber(minetest.settings:get("protector_radius")) or 5
if r > 30 then r = 30 end
-- show protection areas of nearby protectors owned by you (thanks agaran)
local r = protector.radius
minetest.register_chatcommand("protector_show_area", {
params = "",
description = S("Show protected areas of your nearby protectors"),