Increased code readability for ObjectManager

This commit is contained in:
Obique
2015-01-14 15:27:24 -06:00
committed by Obique
parent 4cb9359eb1
commit aff8d2e25c
2 changed files with 53 additions and 22 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ public class PlayerManager extends Manager {
player = transitionLoginToZone(networkId, gpi.getGalaxy().getId(), (ClientIdMsg) packet);
else
player = players.get(networkId);
if (player == null && type == ServerType.LOGIN) {
if (type == ServerType.LOGIN && player == null) {
player = new Player(this, networkId);
players.put(networkId, player);
}