From: David ‘Bombe’ Roden Date: Thu, 31 Jul 2014 11:13:35 +0000 (+0200) Subject: Remember the current state. X-Git-Tag: v2~222 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=7df008269091b630ad675801772b72c9bedc55cb;p=rhynodge.git Remember the current state. --- 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; }