From 002dfdd18b908bda3e784dd303c15bbef79cdd2e Mon Sep 17 00:00:00 2001 From: ThatGravyBoat Date: Tue, 6 Jul 2021 18:18:26 -0230 Subject: Switched SlayerHandler to use regex instead of .replace and .split --- .../java/com/thatgravyboat/skyblockhud/api/LeaderboardGetter.java | 2 -- .../thatgravyboat/skyblockhud/api/events/ProfileSwitchedEvent.java | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'src/main/java/com/thatgravyboat/skyblockhud/api') diff --git a/src/main/java/com/thatgravyboat/skyblockhud/api/LeaderboardGetter.java b/src/main/java/com/thatgravyboat/skyblockhud/api/LeaderboardGetter.java index 58cede8..fbf68c9 100644 --- a/src/main/java/com/thatgravyboat/skyblockhud/api/LeaderboardGetter.java +++ b/src/main/java/com/thatgravyboat/skyblockhud/api/LeaderboardGetter.java @@ -25,8 +25,6 @@ public class LeaderboardGetter { private static int ticks = 0; - //This is really bad and should use the packet instead. - @SubscribeEvent public void onClientUpdate(TickEvent.ClientTickEvent event){ if (event.phase.equals(TickEvent.Phase.START)) return; diff --git a/src/main/java/com/thatgravyboat/skyblockhud/api/events/ProfileSwitchedEvent.java b/src/main/java/com/thatgravyboat/skyblockhud/api/events/ProfileSwitchedEvent.java index 015388a..9402858 100644 --- a/src/main/java/com/thatgravyboat/skyblockhud/api/events/ProfileSwitchedEvent.java +++ b/src/main/java/com/thatgravyboat/skyblockhud/api/events/ProfileSwitchedEvent.java @@ -2,6 +2,4 @@ package com.thatgravyboat.skyblockhud.api.events; import net.minecraftforge.fml.common.eventhandler.Event; -public class ProfileSwitchedEvent extends Event { - -} +public class ProfileSwitchedEvent extends Event {} -- cgit