emergency fix, relister turning on no matter what

This commit is contained in:
NK 2023-05-24 21:55:34 +01:00
parent e86dfba242
commit c3c32312cc

View file

@ -18,6 +18,7 @@ import me.night0721.lilase.gui.GUIRenderer;
import me.night0721.lilase.remotecontrol.RemoteControl; import me.night0721.lilase.remotecontrol.RemoteControl;
import me.night0721.lilase.utils.Clock; import me.night0721.lilase.utils.Clock;
import me.night0721.lilase.utils.KeyBindingManager; import me.night0721.lilase.utils.KeyBindingManager;
import me.night0721.lilase.utils.ScoreboardUtils;
import me.night0721.lilase.utils.Utils; import me.night0721.lilase.utils.Utils;
import net.minecraft.client.Minecraft; import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiDisconnected; import net.minecraft.client.gui.GuiDisconnected;
@ -82,7 +83,7 @@ public class Lilase {
tickAmount++; tickAmount++;
if (tickAmount % 20 == 0) Utils.checkFooter(); if (tickAmount % 20 == 0) Utils.checkFooter();
// if (pageFlipper != null) pageFlipper.switchStates(); // 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; relister.shouldBeRelisting = true;
if (Flipper.state == FlipperState.NONE) relister.toggle(); if (Flipper.state == FlipperState.NONE) relister.toggle();
} }