store radius and max_shares in global
This commit is contained in:
parent
74fac5ff9a
commit
e4ea32efa3
4 changed files with 37 additions and 51 deletions
|
|
@ -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"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue