Skip to content

Commit

Permalink
Update ChatPackets.java
Browse files Browse the repository at this point in the history
  • Loading branch information
LOOHP committed May 13, 2020
1 parent 930cd10 commit 27cceba
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/com/loohp/interactivechat/Listeners/ChatPackets.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ public void onPacketSending(PacketEvent event) {
BaseComponent[] basecomponentarray = (wcc != null) ? ComponentSerializer.parse(wcc.getJson()) : (BaseComponent[]) field1;
int field = (wcc != null) ? 0 : 1;
BaseComponent basecomponent = basecomponentarray[0];
if (basecomponent.toPlainText().equals("")) {
try {
if (basecomponent.toLegacyText().equals("")) {
return;
}
} catch (Exception e) {
return;
}

Expand Down

0 comments on commit 27cceba

Please sign in to comment.