diff options
author | Aaron <51387595+AzureAaron@users.noreply.github.com> | 2023-12-23 16:48:18 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-23 16:48:18 -0500 |
commit | ef9a262c1c43cc5536ae8acce94ebb987fc12070 (patch) | |
tree | db0fc5e735461d854c8c2ffb36ff1595aedaf053 /src/main/java/de/hysky/skyblocker/skyblock/dungeon | |
parent | f690b55477a7ee617c09bdc44de7d5410c07b587 (diff) | |
parent | 05e6d2eca5f8d3f1f3a6201eeed9f64847572670 (diff) | |
download | Skyblocker-ef9a262c1c43cc5536ae8acce94ebb987fc12070.tar.gz Skyblocker-ef9a262c1c43cc5536ae8acce94ebb987fc12070.tar.bz2 Skyblocker-ef9a262c1c43cc5536ae8acce94ebb987fc12070.zip |
Merge pull request #456 from kevinthegreat1/item-utils-test
Item Utils & Random Tests
Diffstat (limited to 'src/main/java/de/hysky/skyblocker/skyblock/dungeon')
-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 98ffa157..44df9d8c 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) { |