Skip to content

Commit

Permalink
fix. (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
portlek authored Oct 5, 2024
1 parent d5ba743 commit 6367ab2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions core/src/main/java/net/infumia/frame/viewer/ViewerImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,18 @@ public MetadataAccess metadata() {

@Override
public int hashCode() {
return Objects.hashCode(this.player);
return this.player.hashCode();
}

@Override
public boolean equals(final Object o) {
if (this == o) {
return true;
}
if (!(o instanceof ViewerImpl)) {
return false;
if (o instanceof Player) {
return this.player.equals(o);
} else {
return Objects.equals(this.player, ((Viewer) o).player());
}
return Objects.equals(this.player, ((Viewer) o).player());
}
}

0 comments on commit 6367ab2

Please sign in to comment.