diff options
author | My-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com> | 2020-12-19 19:12:25 -0500 |
---|---|---|
committer | My-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com> | 2020-12-19 19:12:25 -0500 |
commit | d56b5061cf874d97a66e1ffeac4992a35476f29a (patch) | |
tree | 93c1f9ff462454587d9f691488974fccac0cb4d7 /src/main/java | |
parent | 6143fa32651bebd85afa46d8f8a4eeaea9fee595 (diff) | |
download | SkyblockMod-d56b5061cf874d97a66e1ffeac4992a35476f29a.tar.gz SkyblockMod-d56b5061cf874d97a66e1ffeac4992a35476f29a.tar.bz2 SkyblockMod-d56b5061cf874d97a66e1ffeac4992a35476f29a.zip |
Fix: Terminal Solvers highlighting items in inventory
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/me/Danker/DankersSkyblockMod.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/me/Danker/DankersSkyblockMod.java b/src/main/java/me/Danker/DankersSkyblockMod.java index da82fdb..325696e 100644 --- a/src/main/java/me/Danker/DankersSkyblockMod.java +++ b/src/main/java/me/Danker/DankersSkyblockMod.java @@ -3536,7 +3536,8 @@ public class DankersSkyblockMod if (ToggleCommand.startsWithToggled && Utils.inDungeons && displayName.startsWith("What starts with:")) { char letter = displayName.charAt(displayName.indexOf("'") + 1); for (Slot slot : invSlots) { - ItemStack item = slot.getStack(); + if (slot.getSlotIndex() > 53) continue; + ItemStack item = slot.getStack(); if (item == null) continue; if (item.isItemEnchanted()) continue; if (StringUtils.stripControlCodes(item.getDisplayName()).charAt(0) == letter) { @@ -3556,6 +3557,7 @@ public class DankersSkyblockMod terminalColorNeeded = colour; for (Slot slot : invSlots) { + if (slot.getSlotIndex() > 53) continue; ItemStack item = slot.getStack(); if (item == null) continue; if (item.isItemEnchanted()) continue; |