mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-12-22 19:45:02 +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
|
||||
- `//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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue