aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java
diff options
context:
space:
mode:
authorVixid <52578495+Vixid1@users.noreply.github.com>2022-11-02 16:12:45 +0000
committerGitHub <noreply@github.com>2022-11-02 17:12:45 +0100
commit6382bdc0d84f2a39c2adeb13c686f422f1914f45 (patch)
tree10ec4f962623097fc6139b8ba88f8afc8128da44 /src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java
parenta6b5448d962792e647d9ea67067dec8360925997 (diff)
downloadnotenoughupdates-6382bdc0d84f2a39c2adeb13c686f422f1914f45.tar.gz
notenoughupdates-6382bdc0d84f2a39c2adeb13c686f422f1914f45.tar.bz2
notenoughupdates-6382bdc0d84f2a39c2adeb13c686f422f1914f45.zip
Crimson Isle Profile Viewer Page (#346)
* Made a profile viewer page for Crimson Isle information. * Changed Black dojo rank to have dark gray colour, so it's readable. * Fixed NullPointerExceptions for missing data * Tried to use ItemResolutionQuery but Nea said this is fine * Added Hostile and Unfriendly faction thresholds * don't recreate helper objects in every render tick * Formatted the class and put drawMageReputation and drawBarbarianReputation into a single function * Last commit broke with players with no selected faction. This fixes it Co-authored-by: NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java b/src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java
index 6c6c7169..948b2550 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java
@@ -266,6 +266,9 @@ public class NotEnoughUpdates {
if (config.profileViewer.pageLayout.size() == 9) {
config.profileViewer.pageLayout.add(9);
}
+ if (config.profileViewer.pageLayout.size() == 10) {
+ config.profileViewer.pageLayout.add(10);
+ }
// Remove after 2.1 ig
if ("dangerous".equals(config.apiData.repoBranch)) {