From d56b5061cf874d97a66e1ffeac4992a35476f29a Mon Sep 17 00:00:00 2001 From: My-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com> Date: Sat, 19 Dec 2020 19:12:25 -0500 Subject: Fix: Terminal Solvers highlighting items in inventory --- src/main/java/me/Danker/DankersSkyblockMod.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit