getting rid of delegation methods

This commit is contained in:
yugecin
2017-01-13 16:28:36 +01:00
parent 1f89c6fcce
commit a1e5c3d30f
5 changed files with 8 additions and 19 deletions

View File

@@ -41,7 +41,7 @@ public class EmptyRedState implements OpsuState {
if (counter < 0) {
counter = 10000; // to prevent more calls to switch, as this will keep rendering until state transitioned
System.out.println(System.currentTimeMillis() - start);
displayContainer.switchState(EmptyState.class);
displayContainer.demux.switchState(EmptyState.class);
}
}

View File

@@ -39,7 +39,7 @@ public class EmptyState implements OpsuState {
counter -= delta;
if (counter < 0) {
counter = 10000; // to prevent more calls to switch, as this will keep rending until state transitioned
displayContainer.switchState(EmptyRedState.class);
displayContainer.demux.switchState(EmptyRedState.class);
}
}