diff options
author | bowser0000 <bowser0000@gmail.com> | 2020-11-28 20:09:01 -0500 |
---|---|---|
committer | bowser0000 <bowser0000@gmail.com> | 2020-11-28 20:09:01 -0500 |
commit | aeb8efcbaa5da7c1d25a82ebaf4af06a8ff34a18 (patch) | |
tree | 152271fc492a2fb39104fe1a05351d51857f2abb /src/main/java/me | |
parent | 9f8b62e18d6b3066ef247d56ec523da5377d538c (diff) | |
download | SkyblockMod-aeb8efcbaa5da7c1d25a82ebaf4af06a8ff34a18.tar.gz SkyblockMod-aeb8efcbaa5da7c1d25a82ebaf4af06a8ff34a18.tar.bz2 SkyblockMod-aeb8efcbaa5da7c1d25a82ebaf4af06a8ff34a18.zip |
Add myth tracker to auto display
Diffstat (limited to 'src/main/java/me')
-rw-r--r-- | src/main/java/me/Danker/TheMod.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/main/java/me/Danker/TheMod.java b/src/main/java/me/Danker/TheMod.java index e07d4f1..ef8d8e2 100644 --- a/src/main/java/me/Danker/TheMod.java +++ b/src/main/java/me/Danker/TheMod.java @@ -2303,7 +2303,7 @@ public class TheMod Utils.checkForDungeons(); } - if (DisplayCommand.auto && mc != null && world != null) { + if (DisplayCommand.auto && mc != null && world != null && player != null) { List<String> scoreboard = ScoreboardHandler.getSidebarLines(); boolean found = false; for (String s : scoreboard) { @@ -2336,6 +2336,14 @@ public class TheMod found = true; } } + for (int i = 0; i < 8; i++) { + ItemStack hotbarItem = player.inventory.getStackInSlot(i); + if (hotbarItem == null) continue; + if (hotbarItem.getDisplayName().contains("Ancestral Spade")) { + DisplayCommand.display = "mythological"; + found = true; + } + } if (!found) DisplayCommand.display = "off"; ConfigHandler.writeStringConfig("misc", "display", DisplayCommand.display); } |