mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-22 15:33:00 +00:00
//floodfill: fix error handling
This commit is contained in:
parent
de8b35dfee
commit
9c4e23daa8
2 changed files with 2 additions and 2 deletions
|
@ -22,6 +22,7 @@ Note to self: See the bottom of this file for the release template text.
|
||||||
- `//multi`: Improve resilience by handling some edge cases
|
- `//multi`: Improve resilience by handling some edge cases
|
||||||
- `//layers`: Fix crash due to outdated debug code
|
- `//layers`: Fix crash due to outdated debug code
|
||||||
- `//erode`/snowballs: Fix assignment to undeclared variable
|
- `//erode`/snowballs: Fix assignment to undeclared variable
|
||||||
|
- `//floodfill`: Fix error handling
|
||||||
|
|
||||||
|
|
||||||
## v1.11: The big data update (25th January 2021)
|
## v1.11: The big data update (25th January 2021)
|
||||||
|
|
|
@ -24,8 +24,7 @@ worldedit.register_command("floodfill", {
|
||||||
replace_node = worldedit.normalize_nodename(replace_node)
|
replace_node = worldedit.normalize_nodename(replace_node)
|
||||||
|
|
||||||
if not replace_node then
|
if not replace_node then
|
||||||
worldedit.player_notify(name, "Error: Invalid node name.")
|
return false, "Error: Invalid node name."
|
||||||
return false
|
|
||||||
end
|
end
|
||||||
|
|
||||||
return true, replace_node, radius
|
return true, replace_node, radius
|
||||||
|
|
Loading…
Reference in a new issue