From 963d1192c2083381add46f58b0ae33f16ab7c504 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Thu, 23 Aug 2018 13:37:03 +1000 Subject: [PATCH] Don't require Selection classifier for region binding --- .../sk89q/worldedit/internal/command/WorldEditBinding.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/internal/command/WorldEditBinding.java b/worldedit-core/src/main/java/com/sk89q/worldedit/internal/command/WorldEditBinding.java index f8a4416e5..89c850826 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/internal/command/WorldEditBinding.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/internal/command/WorldEditBinding.java @@ -81,15 +81,14 @@ public class WorldEditBinding extends BindingHelper { * Gets a selection from a {@link ArgumentStack}. * * @param context the context - * @param selection the annotation * @return a selection * @throws IncompleteRegionException if no selection is available * @throws ParameterException on other error */ - @BindingMatch(classifier = Selection.class, + @BindingMatch( type = Region.class, behavior = BindingBehavior.PROVIDES) - public Object getSelection(ArgumentStack context, Selection selection) throws IncompleteRegionException, ParameterException { + public Object getSelection(ArgumentStack context) throws IncompleteRegionException, ParameterException { Player sender = getPlayer(context); LocalSession session = worldEdit.getSessionManager().get(sender); return session.getSelection(FawePlayer.wrap(sender).getWorldForEditing());