remove unecessary globals
This commit is contained in:
parent
fa12398332
commit
a7ee92feff
4 changed files with 40 additions and 35 deletions
|
|
@ -111,6 +111,8 @@ minetest.register_abm({
|
|||
end
|
||||
})
|
||||
|
||||
-- get protection radius
|
||||
local r = tonumber(minetest.settings:get("protector_radius")) or 5
|
||||
|
||||
-- show protection areas of nearby protectors owned by you (thanks agaran)
|
||||
minetest.register_chatcommand("protector_show", {
|
||||
|
|
@ -121,7 +123,6 @@ minetest.register_chatcommand("protector_show", {
|
|||
|
||||
local player = minetest.get_player_by_name(name)
|
||||
local pos = player:get_pos()
|
||||
local r = protector.radius
|
||||
|
||||
-- find the protector nodes
|
||||
local pos = minetest.find_nodes_in_area(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue