Skip to content

Commit

Permalink
Try to fix kick problems
Browse files Browse the repository at this point in the history
  • Loading branch information
Brikster committed Jul 29, 2023
1 parent 44ff8cd commit 036e6b6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@ public void sendChatPacket(Player player, String type, String text, @Nullable Pl
Object playerChatMessage = clsPlayerChatMessage.getMethod("a", clsIChatBaseComponent)
.invoke(null, chatBaseComponent);

if (sender == null) {
// TODO fix kick problems
if (true) {
// entityPlayer.a(chatBaseComponent, chatMessageType);
entityPlayer.getClass().getMethod("a", clsIChatBaseComponent, chatMessageType.getClass())
.invoke(entityPlayer, chatBaseComponent, chatMessageType);
Expand Down

0 comments on commit 036e6b6

Please sign in to comment.