aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGodSaveTheDoge <51802433+GodSaveTheDoge@users.noreply.github.com>2021-06-09 00:35:35 +0200
committerGodSaveTheDoge <51802433+GodSaveTheDoge@users.noreply.github.com>2021-06-09 00:35:35 +0200
commit88e9da119ef7dd0a5dda686f5781dc7328c584ce (patch)
treea5590919a2402e0fa512336a8599f1ca449f4b11 /src
parent14efcd8b81763d1c06a4291eeb6a0f1aaeb770fe (diff)
downloadSkyblockMod-88e9da119ef7dd0a5dda686f5781dc7328c584ce.tar.gz
SkyblockMod-88e9da119ef7dd0a5dda686f5781dc7328c584ce.tar.bz2
SkyblockMod-88e9da119ef7dd0a5dda686f5781dc7328c584ce.zip
Refractored Chronomatron Solver
refractored src/main/java/me/Danker/features/puzzlesolvers/ChronomatronSolver.java
Diffstat (limited to 'src')
-rw-r--r--src/main/java/me/Danker/features/puzzlesolvers/ChronomatronSolver.java16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/main/java/me/Danker/features/puzzlesolvers/ChronomatronSolver.java b/src/main/java/me/Danker/features/puzzlesolvers/ChronomatronSolver.java
index 208cf9b..1fff07a 100644
--- a/src/main/java/me/Danker/features/puzzlesolvers/ChronomatronSolver.java
+++ b/src/main/java/me/Danker/features/puzzlesolvers/ChronomatronSolver.java
@@ -67,19 +67,13 @@ public class ChronomatronSolver {
Slot glassSlot = invSlots.get(i);
- if (chronomatronMouseClicks + 1 < chronomatronPattern.size()) {
- if (chronomatronPattern.get(chronomatronMouseClicks).equals(chronomatronPattern.get(chronomatronMouseClicks + 1))) {
- if (glass.getDisplayName().equals(chronomatronPattern.get(chronomatronMouseClicks))) {
- Utils.drawOnSlot(chestSize, glassSlot.xDisplayPosition, glassSlot.yDisplayPosition, CHRONOMATRON_NEXT + 0xE5000000);
- }
- } else if (glass.getDisplayName().equals(chronomatronPattern.get(chronomatronMouseClicks))) {
- Utils.drawOnSlot(chestSize, glassSlot.xDisplayPosition, glassSlot.yDisplayPosition, CHRONOMATRON_NEXT + 0xE5000000);
- } else if (glass.getDisplayName().equals(chronomatronPattern.get(chronomatronMouseClicks + 1))) {
- Utils.drawOnSlot(chestSize, glassSlot.xDisplayPosition, glassSlot.yDisplayPosition, CHRONOMATRON_NEXT_TO_NEXT + 0XBE000000);
- }
- } else if (glass.getDisplayName().equals(chronomatronPattern.get(chronomatronMouseClicks))) {
+
+ if (glass.getDisplayName().equals(chronomatronPattern.get(chronomatronMouseClicks))) {
Utils.drawOnSlot(chestSize, glassSlot.xDisplayPosition, glassSlot.yDisplayPosition, CHRONOMATRON_NEXT + 0xE5000000);
+ } else if (chronomatronMouseClicks + 1 < chronomatronPattern.size() && glass.getDisplayName().equals(chronomatronPattern.get(chronomatronMouseClicks + 1))) {
+ Utils.drawOnSlot(chestSize, glassSlot.xDisplayPosition, glassSlot.yDisplayPosition, CHRONOMATRON_NEXT_TO_NEXT + 0XBE000000);
}
+
}
}
} else if (invSlots.get(49).getStack().getDisplayName().equals("§aRemember the pattern!")) {