fix
This commit is contained in:
parent
ab4e2c9434
commit
c64e8c5dbf
2 changed files with 0 additions and 8 deletions
|
@ -68,7 +68,6 @@ public class Lilase {
|
||||||
if (mc.thePlayer == null || event.phase != TickEvent.Phase.START) return;
|
if (mc.thePlayer == null || event.phase != TickEvent.Phase.START) return;
|
||||||
tickAmount++;
|
tickAmount++;
|
||||||
if (tickAmount % 20 == 0) Utils.checkFooter();
|
if (tickAmount % 20 == 0) Utils.checkFooter();
|
||||||
if (tickAmount % 2400 == 0) configHandler.checkWebhookAndAPI();
|
|
||||||
if (pageFlipper != null) pageFlipper.switchStates();
|
if (pageFlipper != null) pageFlipper.switchStates();
|
||||||
if (QueueItem.flipper != null) QueueItem.flipper.switchStates();
|
if (QueueItem.flipper != null) QueueItem.flipper.switchStates();
|
||||||
if (mc.currentScreen instanceof GuiDisconnected && clock.passed()) {
|
if (mc.currentScreen instanceof GuiDisconnected && clock.passed()) {
|
||||||
|
|
|
@ -3,7 +3,6 @@ package me.night0721.lilase.config;
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.google.gson.JsonObject;
|
import com.google.gson.JsonObject;
|
||||||
import com.google.gson.JsonParser;
|
import com.google.gson.JsonParser;
|
||||||
import me.night0721.lilase.utils.Utils;
|
|
||||||
|
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
|
|
||||||
|
@ -31,12 +30,6 @@ public class ConfigHandler {
|
||||||
if (hasNoKey("GUI_COLOR")) setInt("GUI_COLOR", 0x003153);
|
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() {
|
public JsonObject readConfigFile() {
|
||||||
try {
|
try {
|
||||||
File configFile = new File(System.getProperty("user.dir") + path);
|
File configFile = new File(System.getProperty("user.dir") + path);
|
||||||
|
|
Loading…
Reference in a new issue