aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorMy-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com>2020-12-19 19:12:25 -0500
committerMy-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com>2020-12-19 19:12:25 -0500
commitd56b5061cf874d97a66e1ffeac4992a35476f29a (patch)
tree93c1f9ff462454587d9f691488974fccac0cb4d7 /src/main/java
parent6143fa32651bebd85afa46d8f8a4eeaea9fee595 (diff)
downloadSkyblockMod-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.java4
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;