aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorNopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com>2022-09-23 04:50:33 +1000
committerGitHub <noreply@github.com>2022-09-22 20:50:33 +0200
commiteeaf4c2a30ef7ca6bba067bbfc48ece0ad93f55b (patch)
treecc3749dce0cf9ddbe81c3e7170208c424eb5100b /src/main/java
parent5b3d6154a53599d37aa9c98e89b942f70fbce2cb (diff)
downloadNotEnoughUpdates-eeaf4c2a30ef7ca6bba067bbfc48ece0ad93f55b.tar.gz
NotEnoughUpdates-eeaf4c2a30ef7ca6bba067bbfc48ece0ad93f55b.tar.bz2
NotEnoughUpdates-eeaf4c2a30ef7ca6bba067bbfc48ece0ad93f55b.zip
made combat overlay show with only champion (#291)
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/overlays/CombatSkillOverlay.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/overlays/CombatSkillOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/overlays/CombatSkillOverlay.java
index 4ad6767d..bf106eed 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/overlays/CombatSkillOverlay.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/overlays/CombatSkillOverlay.java
@@ -91,6 +91,7 @@ public class CombatSkillOverlay
championXpLast = championXp;
xpGainHourLast = xpGainHour;
kill = -1;
+ championXp = -1;
if (Minecraft.getMinecraft().thePlayer == null) return;
@@ -216,7 +217,7 @@ public class CombatSkillOverlay
killQueue.removeLast();
}
- if (kill != -1) {
+ if (kill != -1 || championXp != -1) {
overlayStrings = new ArrayList<>();
} else {
overlayStrings = null;
@@ -228,7 +229,7 @@ public class CombatSkillOverlay
public void updateFrequent() {
super.updateFrequent();
- if ((kill < 0 || championXp < 0) && !NotEnoughUpdates.INSTANCE.config.skillOverlays.alwaysShowCombatOverlay) {
+ if ((kill < 0 && championXp < 0) && !NotEnoughUpdates.INSTANCE.config.skillOverlays.alwaysShowCombatOverlay) {
overlayStrings = null;
} else {
HashMap<Integer, String> lineMap = new HashMap<>();