From bbaa9403e7982c1219f28ed8159001fefc2b2180 Mon Sep 17 00:00:00 2001 From: Triassic Date: Tue, 3 Oct 2023 23:45:46 +0300 Subject: [PATCH] fix: Warning printing when there was no issue on party join/leave (#300) --- .../main/java/net/draycia/carbon/common/users/PartyImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/net/draycia/carbon/common/users/PartyImpl.java b/common/src/main/java/net/draycia/carbon/common/users/PartyImpl.java index a03fcdd8..71b842f0 100644 --- a/common/src/main/java/net/draycia/carbon/common/users/PartyImpl.java +++ b/common/src/main/java/net/draycia/carbon/common/users/PartyImpl.java @@ -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); + } }); } }