Fixed bug with gameOver not being called properly

This commit is contained in:
Anuken
2018-01-29 23:21:55 -05:00
parent aaa9f85206
commit 4b830a8cf2
6 changed files with 72 additions and 5 deletions

View File

@@ -121,7 +121,9 @@ public class DebugFragment implements Fragment {
"enemies: " + enemyGroup.size(),
"tiles: " + tileGroup.size(),
world.getCore() != null && world.getCore().entity != null ? "core.health: " + world.getCore().entity.health : "",
"",
"core: " + world.getCore(),
"state.gameover: " + state.gameOver,
"state: " + state.getState(),
!Net.server() ? clientDebug.getOut() : serverDebug.getOut()
);
}