From c3c32312ccf7316cd905cb731e6d8a4cc9be0832 Mon Sep 17 00:00:00 2001 From: NK Date: Wed, 24 May 2023 21:55:34 +0100 Subject: [PATCH] emergency fix, relister turning on no matter what --- src/main/java/me/night0721/lilase/Lilase.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/me/night0721/lilase/Lilase.java b/src/main/java/me/night0721/lilase/Lilase.java index 772f565..429e6b0 100644 --- a/src/main/java/me/night0721/lilase/Lilase.java +++ b/src/main/java/me/night0721/lilase/Lilase.java @@ -18,6 +18,7 @@ import me.night0721.lilase.gui.GUIRenderer; import me.night0721.lilase.remotecontrol.RemoteControl; import me.night0721.lilase.utils.Clock; import me.night0721.lilase.utils.KeyBindingManager; +import me.night0721.lilase.utils.ScoreboardUtils; import me.night0721.lilase.utils.Utils; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.GuiDisconnected; @@ -82,7 +83,7 @@ public class Lilase { tickAmount++; if (tickAmount % 20 == 0) Utils.checkFooter(); // if (pageFlipper != null) pageFlipper.switchStates(); - if (tickAmount % (RELIST_CHECK_TIMEOUT * 72_000) == 0) { + if (tickAmount % (RELIST_CHECK_TIMEOUT * 72_000) == 0 && ScoreboardUtils.getSidebarLines().stream().map(ScoreboardUtils::cleanSB).anyMatch(s -> s.contains("SKYBLOCK")) && AUTO_RELIST) { relister.shouldBeRelisting = true; if (Flipper.state == FlipperState.NONE) relister.toggle(); }