diff options
author | bowser0000 <bowser0000@gmail.com> | 2022-04-05 03:12:38 -0400 |
---|---|---|
committer | bowser0000 <bowser0000@gmail.com> | 2022-04-05 03:12:38 -0400 |
commit | d80e4d76971b99daeccde6b45876ea68ebcb6458 (patch) | |
tree | e19617673befedba290e4abaf92268baa127f61f | |
parent | dce1af627f2f9f10bb21f83b976c2b6008975fdf (diff) | |
download | SkyblockMod-d80e4d76971b99daeccde6b45876ea68ebcb6458.tar.gz SkyblockMod-d80e4d76971b99daeccde6b45876ea68ebcb6458.tar.bz2 SkyblockMod-d80e4d76971b99daeccde6b45876ea68ebcb6458.zip |
Fix same colour solver resetting correct colour
-rw-r--r-- | src/main/java/me/Danker/features/puzzlesolvers/SameColourSolver.java | 6 |
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) { |