Initial problem solving (identified by Intellij)
This commit is contained in:
@@ -66,7 +66,7 @@ public class Game implements Serializable {
|
||||
/**
|
||||
* Queue containing the players who still have to choose their totem.
|
||||
*/
|
||||
private Queue<Player> totemChoiceQueue = new LinkedList<>();
|
||||
private final Queue<Player> totemChoiceQueue = new LinkedList<>();
|
||||
|
||||
/**
|
||||
* Assigns the selected totem to the specified player during the totem choice phase.
|
||||
@@ -122,7 +122,7 @@ public class Game implements Serializable {
|
||||
* Map tracking the players who are currently disconnected.
|
||||
* Key: player; value: {@code true} if currently disconnected, {@code false} if reconnected.
|
||||
*/
|
||||
private Map<Player,Boolean> disconnectedPlayers = new HashMap<>();
|
||||
private final Map<Player,Boolean> disconnectedPlayers = new HashMap<>();
|
||||
|
||||
/**
|
||||
* Returns an unmodifiable view of the disconnected-players map.
|
||||
|
||||
Reference in New Issue
Block a user