From db3c83fdef171e49df6aed3f9de754a923a6b240 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Sat, 7 Jul 2018 07:12:54 +1000 Subject: [PATCH] Wrap if command class is instance of processor --- .../worldedit/util/command/parametric/ParametricBuilder.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/main/java/com/sk89q/worldedit/util/command/parametric/ParametricBuilder.java b/core/src/main/java/com/sk89q/worldedit/util/command/parametric/ParametricBuilder.java index 70480942..0f94495c 100644 --- a/core/src/main/java/com/sk89q/worldedit/util/command/parametric/ParametricBuilder.java +++ b/core/src/main/java/com/sk89q/worldedit/util/command/parametric/ParametricBuilder.java @@ -183,6 +183,9 @@ public class ParametricBuilder { if (processor != null) { callable = new ProcessedCallable(callable, processor); } + else if (object instanceof CallableProcessor) { + callable = new ProcessedCallable(callable, (CallableProcessor) object); + } if (object instanceof MethodCommands) { ((MethodCommands) object).register(method, callable, dispatcher); }