store radius and max_shares in global
This commit is contained in:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user