aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2022-04-05 03:12:38 -0400
committerbowser0000 <bowser0000@gmail.com>2022-04-05 03:12:38 -0400
commitd80e4d76971b99daeccde6b45876ea68ebcb6458 (patch)
treee19617673befedba290e4abaf92268baa127f61f /src/main/java
parentdce1af627f2f9f10bb21f83b976c2b6008975fdf (diff)
downloadSkyblockMod-d80e4d76971b99daeccde6b45876ea68ebcb6458.tar.gz
SkyblockMod-d80e4d76971b99daeccde6b45876ea68ebcb6458.tar.bz2
SkyblockMod-d80e4d76971b99daeccde6b45876ea68ebcb6458.zip
Fix same colour solver resetting correct colour
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/me/Danker/features/puzzlesolvers/SameColourSolver.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/me/Danker/features/puzzlesolvers/SameColourSolver.java b/src/main/java/me/Danker/features/puzzlesolvers/SameColourSolver.java
index 9b0066b..986e138 100644
--- a/src/main/java/me/Danker/features/puzzlesolvers/SameColourSolver.java
+++ b/src/main/java/me/Danker/features/puzzlesolvers/SameColourSolver.java
@@ -134,8 +134,10 @@ public class SameColourSolver {
@SubscribeEvent
public void onGuiOpen(GuiOpenEvent event) {
- foundColour = false;
- correctColour = 0;
+ if (!(event.gui instanceof GuiChest)) {
+ foundColour = false;
+ correctColour = 0;
+ }
}
public static int getDistance(int colour, int endColour) {