mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
Remove redundant event cancellations
This commit is contained in:
1 parent
76e7d4d18e
commit
068ba26cfc
1 file changed
-3
@@ -134,7 +134,6 @@ public final class VelocityChatListener {
|
||||
this.carbonChat.eventHandler().emit(chatEvent);
|
||||
|
||||
if (chatEvent.cancelled()) {
|
||||
event.setResult(PlayerChatEvent.ChatResult.denied());
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -147,8 +146,6 @@ public final class VelocityChatListener {
|
||||
|
||||
recipient.sendMessage(renderedMessage);
|
||||
}
|
||||
|
||||
event.setResult(PlayerChatEvent.ChatResult.denied());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user