aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/cowtipper/cowlection/handler
diff options
context:
space:
mode:
authorCow <cow@volloeko.de>2021-01-02 03:21:27 +0100
committerCow <cow@volloeko.de>2021-01-02 03:21:27 +0100
commitf518b342c68d17b4a826984808995b51fe132517 (patch)
tree4b4feb32cce0b5b983252cb4d01dbfb08c9b83de /src/main/java/de/cowtipper/cowlection/handler
parenta62c6c1484eaf7bd03110e34a7522ca87fd86a6d (diff)
downloadCowlection-f518b342c68d17b4a826984808995b51fe132517.tar.gz
Cowlection-f518b342c68d17b4a826984808995b51fe132517.tar.bz2
Cowlection-f518b342c68d17b4a826984808995b51fe132517.zip
Implemented feedback from 0.12.0 pre-release
- Dungeon Party Finder: only lookup party members after *successfully* joining a party - Various small changes to several features - Added a few more config options
Diffstat (limited to 'src/main/java/de/cowtipper/cowlection/handler')
-rw-r--r--src/main/java/de/cowtipper/cowlection/handler/DungeonCache.java18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/main/java/de/cowtipper/cowlection/handler/DungeonCache.java b/src/main/java/de/cowtipper/cowlection/handler/DungeonCache.java
index e06ba7d..cfacd9d 100644
--- a/src/main/java/de/cowtipper/cowlection/handler/DungeonCache.java
+++ b/src/main/java/de/cowtipper/cowlection/handler/DungeonCache.java
@@ -3,6 +3,8 @@ package de.cowtipper.cowlection.handler;
import com.google.common.collect.ComparisonChain;
import com.google.common.collect.Ordering;
import de.cowtipper.cowlection.Cowlection;
+import de.cowtipper.cowlection.config.MooConfig;
+import de.cowtipper.cowlection.listener.skyblock.DungeonsPartyListener;
import de.cowtipper.cowlection.util.TickDelay;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiPlayerTabOverlay;
@@ -33,6 +35,7 @@ public class DungeonCache {
private long lastScoreboardCheck;
private long nextPerformanceSend;
private String queuedFloor;
+ private List<String> potentialPartyMembers;
public DungeonCache(Cowlection main) {
this.main = main;
@@ -156,7 +159,18 @@ public class DungeonCache {
}
}
+ public void lookupPartyMembers() {
+ if (potentialPartyMembers.size() > 0) {
+ new DungeonsPartyListener(main, potentialPartyMembers);
+ potentialPartyMembers.clear();
+ }
+ }
+
// setter/adder
+ public void setPotentialPartyMembers(List<String> potentialPartyMembers) {
+ this.potentialPartyMembers = potentialPartyMembers;
+ }
+
public void setQueuedFloor(String floorNr) {
this.queuedFloor = floorNr;
}
@@ -170,7 +184,9 @@ public class DungeonCache {
int previousPlayerDeaths = deathCounter.getOrDefault(playerName, 0);
deathCounter.put(playerName, previousPlayerDeaths + 1);
- new TickDelay(this::sendDungeonPerformance, 1);
+ if (MooConfig.dungSendPerformanceOnDeath) {
+ new TickDelay(this::sendDungeonPerformance, 1);
+ }
}
public void revivedPlayer(String playerName) {