Skip to content

Commit

Permalink
fix Advancement#displayInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
Faithcaio committed Jul 7, 2024
1 parent 23a52ca commit 6f65c94
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public Optional<ResourceKey> parent() {

@Override
public Optional<org.spongepowered.api.advancement.DisplayInfo> displayInfo() {
return Optional.ofNullable((org.spongepowered.api.advancement.DisplayInfo) (Object) this.display);
return this.display.map(org.spongepowered.api.advancement.DisplayInfo.class::cast);
}

@Override
Expand Down

0 comments on commit 6f65c94

Please sign in to comment.