//floodfill: fix error handling

This commit is contained in:
Starbeamrainbowlabs 2021-05-31 00:38:01 +01:00
parent de8b35dfee
commit 9c4e23daa8
Signed by: sbrl
GPG key ID: 1BE5172E637709C2
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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