aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker
diff options
context:
space:
mode:
authorMy-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com>2020-12-13 21:38:14 -0500
committerMy-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com>2020-12-13 21:38:14 -0500
commit66a55e022de9af8eb5ae61aff69e18037e4f91ee (patch)
tree78b3da78301f3eacdb185c7e253ca262b119c0ee /src/main/java/me/Danker
parent66f06282dd87ed10f9fc6a0242efc9312ab38279 (diff)
downloadSkyblockMod-66a55e022de9af8eb5ae61aff69e18037e4f91ee.tar.gz
SkyblockMod-66a55e022de9af8eb5ae61aff69e18037e4f91ee.tar.bz2
SkyblockMod-66a55e022de9af8eb5ae61aff69e18037e4f91ee.zip
Stop highlighting already chosen items on terminals
Diffstat (limited to 'src/main/java/me/Danker')
-rw-r--r--src/main/java/me/Danker/DankersSkyblockMod.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/me/Danker/DankersSkyblockMod.java b/src/main/java/me/Danker/DankersSkyblockMod.java
index 01f7f23..5fc820e 100644
--- a/src/main/java/me/Danker/DankersSkyblockMod.java
+++ b/src/main/java/me/Danker/DankersSkyblockMod.java
@@ -3264,6 +3264,7 @@ public class DankersSkyblockMod
for (Slot slot : invSlots) {
ItemStack item = slot.getStack();
if (item == null) continue;
+ if (item.isItemEnchanted()) continue;
if (StringUtils.stripControlCodes(item.getDisplayName()).charAt(0) == letter) {
Utils.drawOnSlot(chestSize, slot.xDisplayPosition, slot.yDisplayPosition, 0xBF40FF40);
}
@@ -3283,7 +3284,8 @@ public class DankersSkyblockMod
for (Slot slot : invSlots) {
ItemStack item = slot.getStack();
if (item == null) continue;
- String itemName = StringUtils.stripControlCodes(item.getDisplayName()).toUpperCase();
+ if (item.isItemEnchanted()) continue;
+ String itemName = StringUtils.stripControlCodes(item.getDisplayName()).toUpperCase();
if (itemName.contains(colour) || (colour.equals("SILVER") && itemName.contains("LIGHT GRAY")) || (colour.equals("WHITE") && itemName.equals("WOOL"))) {
Utils.drawOnSlot(chestSize, slot.xDisplayPosition, slot.yDisplayPosition, 0xBF40FF40);
}
@@ -3297,7 +3299,7 @@ public class DankersSkyblockMod
if (itemStack == null) continue;
if (itemStack.getItem() != Item.getItemFromBlock(Blocks.stained_glass_pane)) continue;
if (itemStack.getItemDamage() != 5) continue;
- if (itemStack.stackSize >= terminalNumberNeeded[0]) {
+ if (itemStack.stackSize > terminalNumberNeeded[0]) {
terminalNumberNeeded[0] = itemStack.stackSize + 1;
terminalNumberNeeded[1] = i;
}