Fix confirm stack

This commit is contained in:
Jesse Boyd 2019-11-23 05:33:46 +00:00
parent 944c8c5521
commit 21ecd9dc4b
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
2 changed files with 2 additions and 3 deletions

View File

@ -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;

View File

@ -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);