* Triggered abilities - Fixed class back to ConcurrentHashMap (fixes #966).

This commit is contained in:
LevelX2 2015-05-18 20:56:33 +02:00
parent b0a404e84b
commit 27cbe6a463

View file

@ -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<>();