fixed a NPE

This commit is contained in:
Chiss 2014-05-14 12:38:06 +10:00
parent 97abe79ffa
commit 8ea344cacd

View File

@ -94,7 +94,7 @@ public class GameCreationManager implements Listener
HandlerList.unregisterAll(game);
System.out.println("GameCreationManager - DEBUG - Attempting Removal - " + game.WorldData.Folder + " - " + System.currentTimeMillis());
System.out.println("GameCreationManager - DEBUG - Attempting Removal - " + game.GetName() + " - " + System.currentTimeMillis());
//Cleaned
if (game.WorldData == null)
@ -123,6 +123,7 @@ public class GameCreationManager implements Listener
{
game.WorldData.Uninitialize();
game.WorldData = null;
gameIterator.remove();
System.out.println("GameCreationManager - DEBUG - Uninit World - " + System.currentTimeMillis());
}