diff options
author | bowser0000 <bowser0000@gmail.com> | 2022-02-25 22:46:55 -0500 |
---|---|---|
committer | bowser0000 <bowser0000@gmail.com> | 2022-02-25 22:46:55 -0500 |
commit | 4f89ebe884e37084eb2088087f2bb378ccb84020 (patch) | |
tree | 847b0959f61247d868adcc12d66273877cfc5ef7 /src/main/java/me/Danker/features/puzzlesolvers | |
parent | 787a6e81bac1fdae10f1efad5e3726f97f952e3e (diff) | |
download | SkyblockMod-4f89ebe884e37084eb2088087f2bb378ccb84020.tar.gz SkyblockMod-4f89ebe884e37084eb2088087f2bb378ccb84020.tar.bz2 SkyblockMod-4f89ebe884e37084eb2088087f2bb378ccb84020.zip |
Fix chronomatron solver
Diffstat (limited to 'src/main/java/me/Danker/features/puzzlesolvers')
-rw-r--r-- | src/main/java/me/Danker/features/puzzlesolvers/ChronomatronSolver.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/me/Danker/features/puzzlesolvers/ChronomatronSolver.java b/src/main/java/me/Danker/features/puzzlesolvers/ChronomatronSolver.java index 52da0ec..7293f51 100644 --- a/src/main/java/me/Danker/features/puzzlesolvers/ChronomatronSolver.java +++ b/src/main/java/me/Danker/features/puzzlesolvers/ChronomatronSolver.java @@ -45,8 +45,10 @@ public class ChronomatronSolver { if (chronomatronPattern.size() > chronomatronMouseClicks && !item.getDisplayName().equals(chronomatronPattern.get(chronomatronMouseClicks))) { if (event.isCancelable() && !Keyboard.isKeyDown(Keyboard.KEY_LCONTROL) && !Keyboard.isKeyDown(Keyboard.KEY_RCONTROL)) { event.setCanceled(true); + return; } } + chronomatronMouseClicks++; } else if (inventory.getStackInSlot(49).getDisplayName().startsWith("§aRemember the pattern!")) { if (event.isCancelable()) event.setCanceled(true); } |