aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/cowtipper/cowlection
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/de/cowtipper/cowlection')
-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;