Fixed: DisconnectedPlayer and ReconnectPlayer apply with minimodel not initialized, disconnection countdown when the game is ended. Fixed: the player is now removed from order if it was added before.
This commit is contained in:
@@ -4,6 +4,7 @@ import java.util.Collection;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
/**
|
||||
* A {@link LinkedHashMap} with a configurable size limit and an associated action.
|
||||
@@ -15,7 +16,7 @@ import java.util.Set;
|
||||
*/
|
||||
public class LimitedMap<K, V> implements Map<K, V> {
|
||||
|
||||
private final LinkedHashMap<K, V> map = new LinkedHashMap<>();
|
||||
private final ConcurrentHashMap<K, V> map = new ConcurrentHashMap<>();
|
||||
|
||||
/**
|
||||
* The maximum number of elements allowed in the map before the action is triggered.
|
||||
|
||||
Reference in New Issue
Block a user