Skip to content

Commit

Permalink
Fix component args
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexProgrammerDE committed Jun 16, 2024
1 parent 50f6d0f commit 4a9adfb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,9 @@ private void beginLogin(Session session, MinecraftProtocol protocol, ClientInten
isTransfer = transferred;
session.switchOutboundProtocol(() -> protocol.setOutboundState(ProtocolState.LOGIN));
if (packet.getProtocolVersion() > protocol.getCodec().getProtocolVersion()) {
session.disconnect(Component.translatable("multiplayer.disconnect.incompatible", protocol.getCodec().getMinecraftVersion()));
session.disconnect(Component.translatable("multiplayer.disconnect.incompatible", Component.text(protocol.getCodec().getMinecraftVersion())));
} else if (packet.getProtocolVersion() < protocol.getCodec().getProtocolVersion()) {
session.disconnect(Component.translatable("multiplayer.disconnect.outdated_client", protocol.getCodec().getMinecraftVersion()));
session.disconnect(Component.translatable("multiplayer.disconnect.outdated_client", Component.text(protocol.getCodec().getMinecraftVersion())));
} else {
session.switchInboundProtocol(() -> protocol.setInboundState(ProtocolState.LOGIN));
}
Expand Down

0 comments on commit 4a9adfb

Please sign in to comment.