This commit is contained in:
NK 2023-05-17 12:33:28 +01:00
parent ab4e2c9434
commit c64e8c5dbf
2 changed files with 0 additions and 8 deletions

View file

@ -68,7 +68,6 @@ public class Lilase {
if (mc.thePlayer == null || event.phase != TickEvent.Phase.START) return;
tickAmount++;
if (tickAmount % 20 == 0) Utils.checkFooter();
if (tickAmount % 2400 == 0) configHandler.checkWebhookAndAPI();
if (pageFlipper != null) pageFlipper.switchStates();
if (QueueItem.flipper != null) QueueItem.flipper.switchStates();
if (mc.currentScreen instanceof GuiDisconnected && clock.passed()) {

View file

@ -3,7 +3,6 @@ package me.night0721.lilase.config;
import com.google.gson.Gson;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import me.night0721.lilase.utils.Utils;
import java.io.*;
@ -31,12 +30,6 @@ public class ConfigHandler {
if (hasNoKey("GUI_COLOR")) setInt("GUI_COLOR", 0x003153);
}
public void checkWebhookAndAPI() {
if (getString("APIKey").equals("") || getString("Webhook").equals("")) {
Utils.sendMessage("API Key or Webhook is not set, please set it in the menu (Press *)");
}
}
public JsonObject readConfigFile() {
try {
File configFile = new File(System.getProperty("user.dir") + path);