diff options
author | Rime <81419447+Emirlol@users.noreply.github.com> | 2024-06-07 15:36:58 +0300 |
---|---|---|
committer | Rime <81419447+Emirlol@users.noreply.github.com> | 2024-06-08 04:13:47 +0300 |
commit | 69a08217ec3ca685dfe1a0bdd53eb8d7424a8791 (patch) | |
tree | e2f77fc1cc887cfa04a4ae722de6d30aa931dfd8 /src/main/java/de | |
parent | 97167505f1f7f805e6afdb8f1c60810e17f553e3 (diff) | |
download | Skyblocker-69a08217ec3ca685dfe1a0bdd53eb8d7424a8791.tar.gz Skyblocker-69a08217ec3ca685dfe1a0bdd53eb8d7424a8791.tar.bz2 Skyblocker-69a08217ec3ca685dfe1a0bdd53eb8d7424a8791.zip |
Reformat SupercraftReminder and lowercase the uuid the variable
Co-authored-by: Kevin <92656833+kevinthegreat1@users.noreply.github.com>
Diffstat (limited to 'src/main/java/de')
-rw-r--r-- | src/main/java/de/hysky/skyblocker/skyblock/item/tooltip/adders/SupercraftReminder.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/de/hysky/skyblocker/skyblock/item/tooltip/adders/SupercraftReminder.java b/src/main/java/de/hysky/skyblocker/skyblock/item/tooltip/adders/SupercraftReminder.java index eb953b9c..8a8f198c 100644 --- a/src/main/java/de/hysky/skyblocker/skyblock/item/tooltip/adders/SupercraftReminder.java +++ b/src/main/java/de/hysky/skyblocker/skyblock/item/tooltip/adders/SupercraftReminder.java @@ -21,10 +21,10 @@ public class SupercraftReminder extends TooltipAdder { @Override public void addToTooltip(List<Text> lines, Slot focusedSlot) { if (focusedSlot.id != SUPERCRAFT_SLOT || !focusedSlot.getStack().isOf(Items.GOLDEN_PICKAXE)) return; - String UUID = ItemUtils.getItemUuid(focusedSlot.inventory.getStack(RECIPE_RESULT_SLOT)); - if (!UUID.isEmpty()) return; //Items with UUID can't be stacked, and therefore the shift-click feature doesn't matter - int index = lines.size()-1; - if (lines.get(lines.size()-2).getString().equals("Recipe not unlocked!")) index--; //Place it right below the "Right-Click to set amount" line + String uuid = ItemUtils.getItemUuid(focusedSlot.inventory.getStack(RECIPE_RESULT_SLOT)); + if (!uuid.isEmpty()) return; //Items with UUID can't be stacked, and therefore the shift-click feature doesn't matter + int index = lines.size() - 1; + if (lines.get(lines.size() - 2).getString().equals("Recipe not unlocked!")) index--; //Place it right below the "Right-Click to set amount" line lines.add(index, Text.literal("Shift-Click to maximize the amount!").formatted(Formatting.GOLD)); } } |