aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCow <cow@volloeko.de>2021-03-22 12:19:30 +0100
committerCow <cow@volloeko.de>2021-03-22 12:19:30 +0100
commitac07fa07ec3fba56fad189c10866e7b22f232434 (patch)
tree3908745d202416d67b5ad33931dabb92ae03dccb
parent342cd24ab0c42101e1d16cc538d6bb2156e481a6 (diff)
downloadCowlection-ac07fa07ec3fba56fad189c10866e7b22f232434.tar.gz
Cowlection-ac07fa07ec3fba56fad189c10866e7b22f232434.tar.bz2
Cowlection-ac07fa07ec3fba56fad189c10866e7b22f232434.zip
Changed: Own class no longer triggers 'always mark parties with class X'
-rw-r--r--src/main/java/de/cowtipper/cowlection/listener/skyblock/DungeonsListener.java9
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;