|
@@ -202,7 +202,7 @@ public class Game {
|
|
|
|
|
|
Logger.DEBUG.log("Making game ready");
|
|
|
++fights;
|
|
|
- if (fights >= Config.getFightRestart()) restart = true;
|
|
|
+ checkFightRestart();
|
|
|
|
|
|
FightStats.checkTables();
|
|
|
Logger.DEBUG.log("Fights: " + fights);
|
|
@@ -210,6 +210,12 @@ public class Game {
|
|
|
ready = true;
|
|
|
}
|
|
|
|
|
|
+ private void checkFightRestart() {
|
|
|
+ if ((Config.getFightRestart() == -1) || (Config.getFightRestart() == 0)) return;
|
|
|
+
|
|
|
+ if (fights >= Config.getFightRestart()) restart = true;
|
|
|
+ }
|
|
|
+
|
|
|
private void updateGameListener(GameBoundListener newListener) {
|
|
|
if (listener != null) HandlerList.unregisterAll(listener);
|
|
|
|