aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/me/Danker/features/puzzlesolvers/ChronomatronSolver.java2
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);
}