aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/me')
-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;