mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2025-02-17 08:33:42 +01:00
//floodfill: fix error handling
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user