aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/torui/coflsky
diff options
context:
space:
mode:
authorHackOS <63157139+HackedOS@users.noreply.github.com>2022-05-27 17:56:43 +0530
committerGitHub <noreply@github.com>2022-05-27 14:26:43 +0200
commitd9180e72b1ce876a5470ef3118e54f8c1771568d (patch)
tree8e4438092cd9deaad1915be1cb464c6cb9bb8e29 /src/main/java/de/torui/coflsky
parentb9b1294882b68e2d85aec0c1d28570f5d68359b9 (diff)
downloadCOFL-d9180e72b1ce876a5470ef3118e54f8c1771568d.tar.gz
COFL-d9180e72b1ce876a5470ef3118e54f8c1771568d.tar.bz2
COFL-d9180e72b1ce876a5470ef3118e54f8c1771568d.zip
Fix most bugs from 1.4-alpha (#63)
* Show Flips in timer in any gui * Fix catch try return
Diffstat (limited to 'src/main/java/de/torui/coflsky')
-rw-r--r--src/main/java/de/torui/coflsky/handlers/EventHandler.java2
-rw-r--r--src/main/java/de/torui/coflsky/minecraft_integration/CountdownTimer.java1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/de/torui/coflsky/handlers/EventHandler.java b/src/main/java/de/torui/coflsky/handlers/EventHandler.java
index 59db467..0fd51f8 100644
--- a/src/main/java/de/torui/coflsky/handlers/EventHandler.java
+++ b/src/main/java/de/torui/coflsky/handlers/EventHandler.java
@@ -53,7 +53,7 @@ public class EventHandler {
ScoreObjective objective = scoreboard.getObjectiveInDisplaySlot(1);
s = EnumChatFormatting.getTextWithoutFormattingCodes(objective.getDisplayName());
} catch (Exception e) {
- s = "";
+ return;
}
checkIfInSkyblock(s);
if (isInSkyblock && CoflSky.Wrapper.isRunning) {
diff --git a/src/main/java/de/torui/coflsky/minecraft_integration/CountdownTimer.java b/src/main/java/de/torui/coflsky/minecraft_integration/CountdownTimer.java
index 9c63627..b8bcedb 100644
--- a/src/main/java/de/torui/coflsky/minecraft_integration/CountdownTimer.java
+++ b/src/main/java/de/torui/coflsky/minecraft_integration/CountdownTimer.java
@@ -30,7 +30,6 @@ public class CountdownTimer {
}
public static void onRenderTick(TickEvent.RenderTickEvent event) {
- if (mc.currentScreen == null || mc.currentScreen instanceof GuiChat) // will only draw the Timer while no GUI or the Chat is open
if (currentEndTime - System.currentTimeMillis() > 0)
drawTimer();
}