Remember the current state.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 31 Jul 2014 11:13:35 +0000 (13:13 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 31 Jul 2014 11:13:35 +0000 (13:13 +0200)
src/main/java/net/pterodactylus/rhynodge/triggers/AlwaysTrigger.java

index 5def993..b9ec39a 100644 (file)
@@ -30,6 +30,8 @@ import net.pterodactylus.rhynodge.output.Output;
  */
 public class AlwaysTrigger implements Trigger {
 
+       private State currentState;
+
        /**
         * {@inheritDoc}
         * <p>
@@ -37,6 +39,7 @@ public class AlwaysTrigger implements Trigger {
         */
        @Override
        public State mergeStates(State previousState, State currentState) {
+               this.currentState = currentState;
                return currentState;
        }