diff options
author | Kevinthegreat <92656833+kevinthegreat1@users.noreply.github.com> | 2023-12-22 23:29:43 +0800 |
---|---|---|
committer | Kevinthegreat <92656833+kevinthegreat1@users.noreply.github.com> | 2023-12-22 23:57:52 +0800 |
commit | 05e6d2eca5f8d3f1f3a6201eeed9f64847572670 (patch) | |
tree | b19ea1a4f9689c8f178484b2ca43db0c1946caa1 /src/main/java/de/hysky/skyblocker/skyblock/dungeon/secrets | |
parent | 69082b40918af3ac4e24d38ebda95a24247e0ded (diff) | |
download | Skyblocker-05e6d2eca5f8d3f1f3a6201eeed9f64847572670.tar.gz Skyblocker-05e6d2eca5f8d3f1f3a6201eeed9f64847572670.tar.bz2 Skyblocker-05e6d2eca5f8d3f1f3a6201eeed9f64847572670.zip |
Add fabric loader junit and ItemUtilsTest
Diffstat (limited to 'src/main/java/de/hysky/skyblocker/skyblock/dungeon/secrets')
-rw-r--r-- | src/main/java/de/hysky/skyblocker/skyblock/dungeon/secrets/SecretWaypoint.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/de/hysky/skyblocker/skyblock/dungeon/secrets/SecretWaypoint.java b/src/main/java/de/hysky/skyblocker/skyblock/dungeon/secrets/SecretWaypoint.java index 75a0c20f..49b33d34 100644 --- a/src/main/java/de/hysky/skyblocker/skyblock/dungeon/secrets/SecretWaypoint.java +++ b/src/main/java/de/hysky/skyblocker/skyblock/dungeon/secrets/SecretWaypoint.java @@ -90,8 +90,13 @@ public class SecretWaypoint extends Waypoint { return category.isBat(); } + @Override + public boolean equals(Object obj) { + return super.equals(obj) || obj instanceof SecretWaypoint other && secretIndex == other.secretIndex && category == other.category && name.equals(other.name) && pos.equals(other.pos); + } + /** - * Renders the secret waypoint, including a filled cube, a beacon beam, the name, and the distance from the player. + * Renders the secret waypoint, including a waypoint through {@link Waypoint#render(WorldRenderContext)}, the name, and the distance from the player. */ @Override public void render(WorldRenderContext context) { |