mirror of
https://github.com/ViaVersion/ViaFabricPlus.git
synced 2024-11-22 11:56:21 +01:00
Fixed connection session setup
This commit is contained in:
parent
9e6a945a40
commit
766048b1eb
@ -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();
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user