Bugfix - let PipeController set modes
[kaka/cakelight.git] / src / kaka / cakelight / Commands.java
index 825ebe3..9a2be3b 100644 (file)
@@ -59,7 +59,7 @@ class Commands {
 
     static Console.Command push() {
         return command(new String[] {"push"}, (console, args) -> {
-            Object obj = console.handleInput(String.join(" ", args));
+            Object obj = console.internalHandleInput(String.join(" ", args));
            if (obj instanceof Mode) { // obj could be anything, which should be fixed
                console.out("pushing mode " + obj.getClass().getSimpleName());
                console.getCakelight().pushMode((Mode) obj);