mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-22 15:33:00 +00:00
Remove todos
This commit is contained in:
parent
a9d8dab77c
commit
083f7a2967
2 changed files with 0 additions and 3 deletions
|
@ -68,8 +68,6 @@ function worldedit.floodfill(start_pos, radius, replace_node)
|
||||||
while Queue.is_empty(remaining_nodes) == false do
|
while Queue.is_empty(remaining_nodes) == false do
|
||||||
local cur = Queue.dequeue(remaining_nodes)
|
local cur = Queue.dequeue(remaining_nodes)
|
||||||
|
|
||||||
-- TODO: Check distance from start_pos
|
|
||||||
|
|
||||||
-- Replace this node
|
-- Replace this node
|
||||||
data[cur] = replace_id
|
data[cur] = replace_id
|
||||||
count = count + 1
|
count = count + 1
|
||||||
|
|
|
@ -28,7 +28,6 @@ minetest.register_chatcommand("/floodfill", {
|
||||||
params = "<replace_node> [<radius>]",
|
params = "<replace_node> [<radius>]",
|
||||||
description = "Floods all connected nodes of the same type starting at pos1 with <replace_node>, in a box-shape with a radius of <radius>, which defaults to 50.",
|
description = "Floods all connected nodes of the same type starting at pos1 with <replace_node>, in a box-shape with a radius of <radius>, which defaults to 50.",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
-- TODO: Integrate will the safe_region feature of regular worldedit
|
|
||||||
func = safe_region(function(name, params_text)
|
func = safe_region(function(name, params_text)
|
||||||
local replace_node, radius = parse_params_floodfill(params_text)
|
local replace_node, radius = parse_params_floodfill(params_text)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue