From b23744aff85fb3d0da561c72cfad27741ef9c18c Mon Sep 17 00:00:00 2001 From: ajgeiss0702 Date: Sun, 18 Aug 2024 13:02:11 -0700 Subject: [PATCH] Dont send instantly if the server is not joinable --- .../main/java/us/ajg0702/queue/common/QueueManagerImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/us/ajg0702/queue/common/QueueManagerImpl.java b/common/src/main/java/us/ajg0702/queue/common/QueueManagerImpl.java index 31983cf..91948fd 100644 --- a/common/src/main/java/us/ajg0702/queue/common/QueueManagerImpl.java +++ b/common/src/main/java/us/ajg0702/queue/common/QueueManagerImpl.java @@ -344,8 +344,8 @@ public boolean canSendInstantly(AdaptedPlayer player, QueueServer queueServer) { boolean alwaysSendInstantly = main.getConfig().getStringList("send-instantly").contains(queueServer.getName()); boolean hasBypass = main.getLogic().hasAnyBypass(player, queueServer.getName()); - boolean sentInstantly = alwaysSendInstantly || (isJoinable && (sizeGood && timeGood)) || hasBypass; - Debug.info("should send instantly (" + sentInstantly + "): " + alwaysSendInstantly + " || (" + isJoinable + " && (" + sizeGood + " && " + timeGood + ") && " + (!hasBypass) + ")"); + boolean sentInstantly = isJoinable && (alwaysSendInstantly || (sizeGood && timeGood) || hasBypass); + Debug.info("should send instantly (" + sentInstantly + "): " + isJoinable + " && (" + alwaysSendInstantly + " || (" + sizeGood + " && " + timeGood + ") || " + hasBypass + ")"); return sentInstantly; }