Updated 'DetermineStartPlayaerState' class.
Updated the 'DetermineStartPlayerState' class by calling the right method of the 'entry' inside the 'RequestDieMessage' handling.
This commit is contained in:
		@@ -69,10 +69,10 @@ public void received(RequestDieMessage msg, int from) {
 | 
			
		||||
            int maximumRoll = 0;
 | 
			
		||||
 | 
			
		||||
            for (Map.Entry<Integer, Integer> entry : this.diceResults.entrySet()) {
 | 
			
		||||
                if (maximumRoll == entry.getKey()) {
 | 
			
		||||
                if (maximumRoll == entry.getValue()) {
 | 
			
		||||
                    this.playersHaveToRoll.add(entry.getKey());
 | 
			
		||||
                }
 | 
			
		||||
                else if (maximumRoll < entry.getKey()) {
 | 
			
		||||
                else if (maximumRoll < entry.getValue()) {
 | 
			
		||||
                    maximumRoll = entry.getValue();
 | 
			
		||||
                    this.playersHaveToRoll.clear();
 | 
			
		||||
                    this.playersHaveToRoll.add(entry.getKey());
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user