Skip to content

Commit

Permalink
legacy-chat: fix cancel on < 1.19
Browse files Browse the repository at this point in the history
  • Loading branch information
roccodev committed Dec 7, 2022
1 parent b1fa9dc commit 039799b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void handlePlayerChatInternal(LegacyChat packet) {
}
this.server.getEventManager().fire(new PlayerChatEvent(this.player, packet.getMessage()))
.whenComplete((chatEvent, throwable) -> {
if (chatEvent.getResult().isAllowed()) {
if (!chatEvent.getResult().isAllowed()) {
return;
}

Expand Down

0 comments on commit 039799b

Please sign in to comment.