From 7df008269091b630ad675801772b72c9bedc55cb Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 31 Jul 2014 13:13:35 +0200 Subject: [PATCH] Remember the current state. --- src/main/java/net/pterodactylus/rhynodge/triggers/AlwaysTrigger.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/net/pterodactylus/rhynodge/triggers/AlwaysTrigger.java b/src/main/java/net/pterodactylus/rhynodge/triggers/AlwaysTrigger.java index 5def993..b9ec39a 100644 --- a/src/main/java/net/pterodactylus/rhynodge/triggers/AlwaysTrigger.java +++ b/src/main/java/net/pterodactylus/rhynodge/triggers/AlwaysTrigger.java @@ -30,6 +30,8 @@ import net.pterodactylus.rhynodge.output.Output; */ public class AlwaysTrigger implements Trigger { + private State currentState; + /** * {@inheritDoc} *

@@ -37,6 +39,7 @@ public class AlwaysTrigger implements Trigger { */ @Override public State mergeStates(State previousState, State currentState) { + this.currentState = currentState; return currentState; } -- 2.7.4