getting rid of delegation methods
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user