From 21ecd9dc4ba041b5bb3f46eba09b9ffd74fe144e Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Sat, 23 Nov 2019 05:33:46 +0000 Subject: [PATCH] Fix confirm stack --- .../main/java/com/sk89q/worldedit/command/RegionCommands.java | 2 +- .../worldedit/extension/platform/binding/ConsumeBindings.java | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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 d84b91dc4..5447d96a2 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 @@ -560,7 +560,7 @@ public class RegionCommands { boolean skipEntities, @Switch(name = 'b', desc = "Also copy biomes") boolean copyBiomes, - @ArgFlag(name = 'm', desc = "Source mask", def="") + @ArgFlag(name = 'm', desc = "Set the include mask, non-matching blocks become air", def = "") Mask mask) throws WorldEditException { Mask combinedMask; diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/binding/ConsumeBindings.java b/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/binding/ConsumeBindings.java index be5f6c25c..2b12233f3 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/binding/ConsumeBindings.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/binding/ConsumeBindings.java @@ -59,8 +59,7 @@ public class ConsumeBindings extends Bindings { } @Binding - @Confirm - @Selection + @Confirm(Confirm.Processor.REGION) public int regionMultiple(Actor actor, InjectedValueAccess context, @Selection Region region, String argument) { int times = (int) Expression.compile(argument).evaluate(); return Confirm.Processor.REGION.check(actor, context, times);