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
+3 -1
@@ -243,7 +243,9 @@ public final class PartyImpl implements Party {
changedPlayer.get().thenAccept(p -> {
notify.notify(p, this, player);
}).whenComplete(($, thr) -> {
this.logger.warn("Exception notifying members of party change", thr);
if (thr != null) {
this.logger.warn("Exception notifying members of party change", thr);
}
});
}
}