Skip to content

Commit

Permalink
perf: Improved local message execution detection
Browse files Browse the repository at this point in the history
  • Loading branch information
4drian3d committed Nov 26, 2023
1 parent 7e29a15 commit b2506ce
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -37,7 +37,7 @@ public boolean ignoreCancelled() {
@Override
public void handle(final @NotNull AsyncChatEvent event) {
debugLogger.debug(() -> "[CHAT] Init Message Handling | Received on: "+System.currentTimeMillis());
if (CHECK_FOR_LOCAL_CHAT && isLocal()) {
if (CHECK_FOR_LOCAL_CHAT && (!event.isAsynchronous() || isLocal())) {
debugLogger.debug(() -> "[CHAT] Local Message Executed");
return;
}
Expand Down

0 comments on commit b2506ce

Please sign in to comment.