make the eventbus static

This commit is contained in:
yugecin
2017-02-06 00:39:45 +01:00
parent 8c53973fa5
commit 77a5ebf537
29 changed files with 97 additions and 104 deletions

View File

@@ -166,13 +166,13 @@ public class GameRanking extends BaseOpsuState {
gameState.setRestart((data.isGameplay()) ? Game.Restart.REPLAY : Game.Restart.NEW);
returnToGame = true;
} catch (FileNotFoundException e) {
EventBus.instance.post(new BarNotificationEvent("Replay file not found."));
EventBus.post(new BarNotificationEvent("Replay file not found."));
} catch (IOException e) {
Log.error("Failed to load replay data.", e);
EventBus.instance.post(new BarNotificationEvent("Failed to load replay data. See log for details."));
EventBus.post(new BarNotificationEvent("Failed to load replay data. See log for details."));
}
} else
EventBus.instance.post(new BarNotificationEvent("Replay file not found."));
EventBus.post(new BarNotificationEvent("Replay file not found."));
}
// retry