From d9180e72b1ce876a5470ef3118e54f8c1771568d Mon Sep 17 00:00:00 2001 From: HackOS <63157139+HackedOS@users.noreply.github.com> Date: Fri, 27 May 2022 17:56:43 +0530 Subject: Fix most bugs from 1.4-alpha (#63) * Show Flips in timer in any gui * Fix catch try return --- src/main/java/de/torui/coflsky/handlers/EventHandler.java | 2 +- .../java/de/torui/coflsky/minecraft_integration/CountdownTimer.java | 1 - 2 files changed, 1 insertion(+), 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(); } -- cgit