From 9c4e23daa848e5132b36432a7377dc8a23db42cc Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Mon, 31 May 2021 00:38:01 +0100 Subject: [PATCH] //floodfill: fix error handling --- CHANGELOG.md | 1 + worldeditadditions_commands/commands/floodfill.lua | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1951984..7ca8728 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/worldeditadditions_commands/commands/floodfill.lua b/worldeditadditions_commands/commands/floodfill.lua index 0412eaa..e829ead 100644 --- a/worldeditadditions_commands/commands/floodfill.lua +++ b/worldeditadditions_commands/commands/floodfill.lua @@ -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