Some formatting, NPE checking and log messages.

This commit is contained in:
LevelX2 2014-06-20 08:25:03 +02:00
parent e57aee7fcb
commit e51213a72a
3 changed files with 13 additions and 8 deletions

View file

@ -204,7 +204,7 @@ public abstract class GameCommanderImpl extends GameImpl {
@Override
public Set<UUID> getOpponents(UUID playerId) {
Set<UUID> opponents = new HashSet<UUID>();
Set<UUID> opponents = new HashSet<>();
for (UUID opponentId: this.getPlayer(playerId).getInRange()) {
if (!opponentId.equals(playerId)) {
opponents.add(opponentId);