Fixed connection session setup

This commit is contained in:
RaphiMC 2023-11-27 17:56:08 +01:00
parent 9e6a945a40
commit 766048b1eb
No known key found for this signature in database
GPG Key ID: 0F6BB0657A03AC94
2 changed files with 1 additions and 3 deletions

View File

@ -51,7 +51,6 @@ import java.util.concurrent.CompletableFuture;
* - 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();

View File

@ -75,8 +75,7 @@ public abstract class MixinConnectScreen_1 {
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) {