From 4f89ebe884e37084eb2088087f2bb378ccb84020 Mon Sep 17 00:00:00 2001 From: bowser0000 Date: Fri, 25 Feb 2022 22:46:55 -0500 Subject: Fix chronomatron solver --- src/main/java/me/Danker/features/puzzlesolvers/ChronomatronSolver.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main/java/me') 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); } -- cgit