Skip to content

Commit

Permalink
Fix party invites breaking
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-i-martin committed Oct 20, 2023
1 parent 9db5c1f commit 066aedf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public List<PartyInvite> findInvitesToTarget(Player target) {
return this.invites.stream().filter(invite -> invite.target().equals(ResolvablePlayer.from(target))).findAny().stream().toList();
}
public Optional<PartyInvite> findInvite(Player target, Player sender) {
return this.invites.stream().filter(invite -> invite.target().equals(target) && invite.sender().equals(sender)).findFirst();
return this.invites.stream().filter(invite -> invite.target().equals(ResolvablePlayer.from(target)) && invite.sender().equals(ResolvablePlayer.from(sender))).findFirst();
}

public void closeInvite(PartyInvite invite) {
Expand Down

0 comments on commit 066aedf

Please sign in to comment.