aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/thatgravyboat/skyblockhud/api/KillTracking.java
diff options
context:
space:
mode:
authorThatGravyBoat <thatgravyboat@gmail.com>2021-07-15 21:29:51 -0230
committerThatGravyBoat <thatgravyboat@gmail.com>2021-07-15 21:29:51 -0230
commit9c759882a1a92593fae687d19106b4a348fc7a4b (patch)
treeb29343929ef2fb617a47ba07d2c0e1160f820741 /src/main/java/com/thatgravyboat/skyblockhud/api/KillTracking.java
parentc63a02e77465296e9b6b099ff61451ee67c8c850 (diff)
downloadSkyblockHud-Death-Defied-9c759882a1a92593fae687d19106b4a348fc7a4b.tar.gz
SkyblockHud-Death-Defied-9c759882a1a92593fae687d19106b4a348fc7a4b.tar.bz2
SkyblockHud-Death-Defied-9c759882a1a92593fae687d19106b4a348fc7a4b.zip
Added move command for waypoints and updated trackers thanks Jani
Diffstat (limited to 'src/main/java/com/thatgravyboat/skyblockhud/api/KillTracking.java')
-rw-r--r--src/main/java/com/thatgravyboat/skyblockhud/api/KillTracking.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/api/KillTracking.java b/src/main/java/com/thatgravyboat/skyblockhud/api/KillTracking.java
index c13a7b8..bc98672 100644
--- a/src/main/java/com/thatgravyboat/skyblockhud/api/KillTracking.java
+++ b/src/main/java/com/thatgravyboat/skyblockhud/api/KillTracking.java
@@ -54,10 +54,8 @@ public class KillTracking {
@SubscribeEvent
public void onWorldChange(EntityJoinWorldEvent event) {
- if (event.entity != null) {
- if (event.entity.getUniqueID().equals(Minecraft.getMinecraft().thePlayer.getUniqueID())) {
- attackedEntities.clear();
- }
+ if (event.entity == Minecraft.getMinecraft().thePlayer) {
+ attackedEntities.clear();
}
}
}