aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/thatgravyboat
diff options
context:
space:
mode:
authorThatGravyBoat <thatgravyboat@gmail.com>2021-07-15 06:20:59 -0230
committerThatGravyBoat <thatgravyboat@gmail.com>2021-07-15 06:20:59 -0230
commitedb756fb816dd196b2774d081f2061a14a86527b (patch)
tree3b83fcd790916119d7741c9eec79da858681258a /src/main/java/com/thatgravyboat
parent4e4058da31c3575b69c69d2d7bb3c9af29e248dc (diff)
downloadSkyblockHud-Death-Defied-edb756fb816dd196b2774d081f2061a14a86527b.tar.gz
SkyblockHud-Death-Defied-edb756fb816dd196b2774d081f2061a14a86527b.tar.bz2
SkyblockHud-Death-Defied-edb756fb816dd196b2774d081f2061a14a86527b.zip
removed 2 random loggers and fixed crystal waypoints show up if you went directly to hypixel hub from crystal hollows
Diffstat (limited to 'src/main/java/com/thatgravyboat')
-rw-r--r--src/main/java/com/thatgravyboat/skyblockhud/core/GuiElementColour.java1
-rw-r--r--src/main/java/com/thatgravyboat/skyblockhud/handlers/CrystalWaypoints.java10
-rw-r--r--src/main/java/com/thatgravyboat/skyblockhud/tracker/TrackerHandler.java1
3 files changed, 10 insertions, 2 deletions
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 {
@@ -40,6 +41,15 @@ public class CrystalWaypoints {
}
@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)) {
waypoints.clear();
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<String, TrackerObject> trackerMap = trackers.get(LocationHandler.getCurrentLocation());
if (trackerMap.containsKey("ENTITY:" + event.id)) {