From edb756fb816dd196b2774d081f2061a14a86527b Mon Sep 17 00:00:00 2001 From: ThatGravyBoat Date: Thu, 15 Jul 2021 06:20:59 -0230 Subject: removed 2 random loggers and fixed crystal waypoints show up if you went directly to hypixel hub from crystal hollows --- .../com/thatgravyboat/skyblockhud/core/GuiElementColour.java | 1 - .../thatgravyboat/skyblockhud/handlers/CrystalWaypoints.java | 10 ++++++++++ .../com/thatgravyboat/skyblockhud/tracker/TrackerHandler.java | 1 - 3 files changed, 10 insertions(+), 2 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/com/thatgravyboat/skyblockhud/core/GuiElementColour.java b/src/main/java/com/thatgravyboat/skyblockhud/core/GuiElementColour.java index 27a1d84..c38e51b 100644 --- a/src/main/java/com/thatgravyboat/skyblockhud/core/GuiElementColour.java +++ b/src/main/java/com/thatgravyboat/skyblockhud/core/GuiElementColour.java @@ -313,7 +313,6 @@ public class GuiElementColour extends GuiElement { float y = mouseYF - this.y - 5; y = Math.max(0, Math.min(64, y)); - System.out.println(y); if (clickedComponent == 1) { int rgb = Color.getHSBColor(wheelAngle / 360, wheelRadius, 1 - y / 64f).getRGB(); diff --git a/src/main/java/com/thatgravyboat/skyblockhud/handlers/CrystalWaypoints.java b/src/main/java/com/thatgravyboat/skyblockhud/handlers/CrystalWaypoints.java index 4e9c6c0..6354591 100644 --- a/src/main/java/com/thatgravyboat/skyblockhud/handlers/CrystalWaypoints.java +++ b/src/main/java/com/thatgravyboat/skyblockhud/handlers/CrystalWaypoints.java @@ -22,6 +22,7 @@ import net.minecraft.util.BlockPos; import net.minecraft.util.ChatComponentText; import net.minecraft.util.EnumChatFormatting; import net.minecraftforge.client.event.RenderWorldLastEvent; +import net.minecraftforge.event.entity.EntityJoinWorldEvent; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; public class CrystalWaypoints { @@ -39,6 +40,15 @@ public class CrystalWaypoints { GlStateManager.enableDepth(); } + @SubscribeEvent + public void onWorldChange(EntityJoinWorldEvent event) { + if (event.entity != null) { + if (event.entity.getUniqueID().equals(Minecraft.getMinecraft().thePlayer.getUniqueID())) { + waypoints.clear(); + } + } + } + @SubscribeEvent public void onLocationChange(LocationChangeEvent event) { if (!event.newLocation.getCategory().equals(LocationCategory.CRYSTALHOLLOWS)) { diff --git a/src/main/java/com/thatgravyboat/skyblockhud/tracker/TrackerHandler.java b/src/main/java/com/thatgravyboat/skyblockhud/tracker/TrackerHandler.java index 50dd04c..750494f 100644 --- a/src/main/java/com/thatgravyboat/skyblockhud/tracker/TrackerHandler.java +++ b/src/main/java/com/thatgravyboat/skyblockhud/tracker/TrackerHandler.java @@ -61,7 +61,6 @@ public class TrackerHandler extends Gui { @SubscribeEvent public void onSbEntityDeath(SkyBlockEntityKilled event) { - System.out.println(event.id); if (SkyblockHud.hasSkyblockScoreboard() && trackers.containsKey(LocationHandler.getCurrentLocation())) { Map trackerMap = trackers.get(LocationHandler.getCurrentLocation()); if (trackerMap.containsKey("ENTITY:" + event.id)) { -- cgit