Simplify state filtering.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 27 Mar 2014 16:11:58 +0000 (17:11 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 27 Mar 2014 16:11:58 +0000 (17:11 +0100)
src/main/java/net/pterodactylus/rhynodge/engine/Engine.java

index bb42289..91c5df9 100644 (file)
@@ -154,9 +154,7 @@ public class Engine extends AbstractExecutionThreadService {
                        /* convert states. */
                        for (Filter filter : nextReaction.get().getReaction().filters()) {
                                if (state.success()) {
-                                       net.pterodactylus.rhynodge.State newState = filter.filter(state);
-                                       //logger.debug(String.format("Old state is %s, new state is %s.", state, newState));
-                                       state = newState;
+                                       state = filter.filter(state);
                                }
                        }
                        if (!state.success()) {