Skip to content

Commit

Permalink
use party state instead of player state for party join/leave messages
Browse files Browse the repository at this point in the history
this should be a little more consistent
  • Loading branch information
jpenilla committed Oct 2, 2023
1 parent a451258 commit 1f51c95
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,9 @@ private void notifyMembersChanged(final UUID changed, final ChangeNotifier notif
if (player.uuid().equals(changed)) {
continue;
}
final WrappedCarbonPlayer wrapped = (WrappedCarbonPlayer) player;
if (this.id().equals(wrapped.partyId())) {
if (this.members.contains(player.uuid())) {
changedPlayer.get().thenAccept(p -> {
notify.notify(p, this, wrapped);
notify.notify(p, this, player);
}).whenComplete(($, thr) -> {
this.logger.warn("Exception notifying members of party change", thr);
});
Expand Down

0 comments on commit 1f51c95

Please sign in to comment.