Skip to content

Commit

Permalink
Fix component args 2
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexProgrammerDE committed Jun 16, 2024
1 parent 75883a8 commit ae3c065
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {
if (cause instanceof TimeoutException) {
message = Component.translatable("disconnect.timeout");
} else {
message = Component.translatable("disconnect.genericReason", "Internal Exception: " + cause);
message = Component.translatable("disconnect.genericReason", Component.text("Internal Exception: " + cause));
}

this.disconnect(message, cause);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public void packetReceived(Session session, Packet packet) {
session.disconnect(Component.translatable("disconnect.loginFailedInfo", Component.translatable("disconnect.loginFailedInfo.invalidSession")), e);
return;
} catch (RequestException e) {
session.disconnect(Component.translatable("disconnect.loginFailedInfo", e.getMessage()), e);
session.disconnect(Component.translatable("disconnect.loginFailedInfo", Component.text(e.getMessage())), e);
return;
}

Expand Down

0 comments on commit ae3c065

Please sign in to comment.