//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
- `//layers`: Fix crash due to outdated debug code
- `//erode`/snowballs: Fix assignment to undeclared variable
- `//floodfill`: Fix error handling
## 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)
if not replace_node then
worldedit.player_notify(name, "Error: Invalid node name.")
return false
return false, "Error: Invalid node name."
end
return true, replace_node, radius