Skip to content

Commit

Permalink
Fixed connection session setup
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphiMC committed Nov 27, 2023
1 parent 9e6a945 commit 766048b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
* - Add setting for VFP AlphaInventoryProvider
* - Fix MixinAbstractDonkeyEntity
* - Check TO DO in MixinEntity
* - Fix bedrock online mode
*/
public class ViaFabricPlus {
private static final ViaFabricPlus instance = new ViaFabricPlus();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ private void setupConnectionSessions(CallbackInfo ci, @Local ClientConnection cl
final UserConnection userConnection = ((IClientConnection) clientConnection).viaFabricPlus$getUserConnection();
if (userConnection == null) return;

final VersionEnum targetVersion = VersionEnum.fromUserConnection(userConnection);

final VersionEnum targetVersion = ProtocolHack.getTargetVersion();
if (targetVersion.isBetweenInclusive(VersionEnum.r1_19, VersionEnum.r1_19_1tor1_19_2)) {
final var keyPair = MinecraftClient.getInstance().getProfileKeys().fetchKeyPair().join().orElse(null);
if (keyPair != null) {
Expand Down

0 comments on commit 766048b

Please sign in to comment.