fix: Warning printing when there was no issue on party join/leave (#300)

This commit is contained in:
Triassic authored and GitHub committed 2023-10-03 13:45:46 -07:00
1 parent 520c02661c
commit bbaa9403e7
1 file changed
+2
@@ -243,7 +243,9 @@ public final class PartyImpl implements Party {
changedPlayer.get().thenAccept(p -> { changedPlayer.get().thenAccept(p -> {
notify.notify(p, this, player); notify.notify(p, this, player);
}).whenComplete(($, thr) -> { }).whenComplete(($, thr) -> {
if (thr != null) {
this.logger.warn("Exception notifying members of party change", thr); this.logger.warn("Exception notifying members of party change", thr);
}
}); });
} }
} }