From 9260d1071a63da7f78a55f155533325815b6ab39 Mon Sep 17 00:00:00 2001 From: Daniel Naylor Date: Sun, 25 Nov 2018 10:30:14 +0000 Subject: [PATCH] Fix from API breakage --- .../proxy/connection/client/HandshakeSessionHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/connection/client/HandshakeSessionHandler.java b/proxy/src/main/java/com/velocitypowered/proxy/connection/client/HandshakeSessionHandler.java index aeed17683..9a04833e2 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/connection/client/HandshakeSessionHandler.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/connection/client/HandshakeSessionHandler.java @@ -128,7 +128,7 @@ public class HandshakeSessionHandler implements MinecraftSessionHandler { private ConnectionType checkForForge(Handshake handshake) { // Determine if we're using Forge (1.8 to 1.12, may not be the case in 1.13). if (handshake.getServerAddress().endsWith(LegacyForgeConstants.HANDSHAKE_HOSTNAME_TOKEN) - && handshake.getProtocolVersion() < ProtocolConstants.MINECRAFT_1_13) { + && handshake.getProtocolVersion().getProtocol() < ProtocolVersion.MINECRAFT_1_13.getProtocol()) { return ConnectionTypes.LEGACY_FORGE; } else { // For later: See if we can determine Forge 1.13+ here, else this will need to be UNDETERMINED