mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +00:00
* Triggered abilities - Fixed class back to ConcurrentHashMap (fixes #966).
This commit is contained in:
parent
b0a404e84b
commit
27cbe6a463
1 changed files with 4 additions and 1 deletions
|
@ -47,8 +47,11 @@ import mage.game.permanent.Permanent;
|
|||
/**
|
||||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*
|
||||
* This class uses ConcurrentHashMap to avoid ConcurrentModificationExceptions.
|
||||
* See ticket https://github.com/magefree/mage/issues/966 and https://github.com/magefree/mage/issues/473
|
||||
*/
|
||||
public class TriggeredAbilities extends HashMap<String, TriggeredAbility> {
|
||||
public class TriggeredAbilities extends ConcurrentHashMap<String, TriggeredAbility> {
|
||||
|
||||
private final Map<String, List<UUID>> sources = new HashMap<>();
|
||||
|
||||
|
|
Loading…
Reference in a new issue