aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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();
}