aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz <lo.scherf@gmail.com>2022-09-11 13:10:27 +0200
committerLorenz <lo.scherf@gmail.com>2022-09-11 13:10:27 +0200
commitc2f903d30782264cdecd26266e789b20d9c5b650 (patch)
treead7845eb1c19b288e6e08a6fcaf489f1f9bcd26b
parenta402490155575059f5a335ad0568f92d49bc86e3 (diff)
downloadNotEnoughUpdates-c2f903d30782264cdecd26266e789b20d9c5b650.tar.gz
NotEnoughUpdates-c2f903d30782264cdecd26266e789b20d9c5b650.tar.bz2
NotEnoughUpdates-c2f903d30782264cdecd26266e789b20d9c5b650.zip
fixing eman requirement (workaround for wrong repo names)
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/util/MinionHelperRequirementsManager.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/util/MinionHelperRequirementsManager.java b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/util/MinionHelperRequirementsManager.java
index adc30a53..bd3b4d1a 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/util/MinionHelperRequirementsManager.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/util/MinionHelperRequirementsManager.java
@@ -87,6 +87,10 @@ public class MinionHelperRequirementsManager {
} else if (requirement instanceof SlayerRequirement) {
SlayerRequirement slayerRequirement = (SlayerRequirement) requirement;
String slayer = slayerRequirement.getSlayer();
+ //Because the neu-repo uses 'eman' and the hypixel api is using 'enderman'
+ if (slayer.equals("eman")) {
+ slayer = "enderman";
+ }
int need = slayerRequirement.getLevel();
Map<String, Integer> slayerTiers = apiData.getSlayerTiers();
if (slayerTiers.containsKey(slayer)) {