diff options
author | Cow <cow@volloeko.de> | 2021-03-22 12:19:30 +0100 |
---|---|---|
committer | Cow <cow@volloeko.de> | 2021-03-22 12:19:30 +0100 |
commit | ac07fa07ec3fba56fad189c10866e7b22f232434 (patch) | |
tree | 3908745d202416d67b5ad33931dabb92ae03dccb /src | |
parent | 342cd24ab0c42101e1d16cc538d6bb2156e481a6 (diff) | |
download | Cowlection-ac07fa07ec3fba56fad189c10866e7b22f232434.tar.gz Cowlection-ac07fa07ec3fba56fad189c10866e7b22f232434.tar.bz2 Cowlection-ac07fa07ec3fba56fad189c10866e7b22f232434.zip |
Changed: Own class no longer triggers 'always mark parties with class X'
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/de/cowtipper/cowlection/listener/skyblock/DungeonsListener.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/main/java/de/cowtipper/cowlection/listener/skyblock/DungeonsListener.java b/src/main/java/de/cowtipper/cowlection/listener/skyblock/DungeonsListener.java index 5ae3846..106a8c6 100644 --- a/src/main/java/de/cowtipper/cowlection/listener/skyblock/DungeonsListener.java +++ b/src/main/java/de/cowtipper/cowlection/listener/skyblock/DungeonsListener.java @@ -301,9 +301,12 @@ public class DungeonsListener { partyType = DataHelper.PartyType.CURRENT; } else { Map<DungeonClass, AtomicInteger> dungClassesInParty = new LinkedHashMap<>(); - AtomicInteger classCounter = new AtomicInteger(); - classCounter.incrementAndGet(); - dungClassesInParty.put(activeDungeonClass, classCounter); // add our own class + if (MooConfig.filterDungPartiesWithDupes(activeDungeonClass) == MooConfig.Setting.SPECIAL) { + // add our own class if we want to avoid dupes + AtomicInteger classCounter = new AtomicInteger(); + classCounter.incrementAndGet(); + dungClassesInParty.put(activeDungeonClass, classCounter); + } int partySize = 5; boolean memberTooLowLevel = false; |