From d7d43869e6a803cb15ad1c9746ce4ecb29141126 Mon Sep 17 00:00:00 2001 From: Alexander Brandes Date: Fri, 10 Jun 2022 01:05:51 +0200 Subject: [PATCH] chore: Update upstream 31e5298 Fixed //stack erroring when given a count of 0 (2108) --- .../main/java/com/sk89q/worldedit/command/RegionCommands.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/RegionCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/RegionCommands.java index 8f8774468..13a9fb54f 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/RegionCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/RegionCommands.java @@ -558,7 +558,7 @@ public class RegionCommands { @ArgFlag(name = 'm', desc = "Set the include mask, non-matching blocks become air") Mask mask ) throws WorldEditException { - checkCommandArgument(count >= 1, "Count must be >= 1"); + checkCommandArgument(count >= 1, "Multiplier must be >= 1"); //FAWE start > the mask will have been initialised with a WorldWrapper extent (very bad/slow) new MaskTraverser(mask).setNewExtent(editSession); @@ -639,6 +639,7 @@ public class RegionCommands { @ArgFlag(name = 'm', desc = "Set the include mask, non-matching blocks become air") Mask mask ) throws WorldEditException { + checkCommandArgument(count >= 1, "Count must be >= 1"); //FAWE start > the mask will have been initialised with a WorldWrapper extent (very bad/slow) new MaskTraverser(mask).setNewExtent(editSession);