forked from External/mage
Some formatting, NPE checking and log messages.
This commit is contained in:
parent
e57aee7fcb
commit
e51213a72a
3 changed files with 13 additions and 8 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue