Update min version checker to b330

This commit is contained in:
Adrian Bergqvist 2024-03-29 02:55:48 +01:00
parent 21d0c11159
commit 8ead34ca6a
No known key found for this signature in database
GPG Key ID: FAE7D8EDE225E686

View File

@ -46,7 +46,7 @@ import static com.velocitypowered.proxy.protocol.packet.brigadier.ArgumentIdenti
public class Ambassador {
//Don't forget to update checkCompatibleVersion() when changing this value
private static final String minVelocityVersion = "velocity-3.2.0-SNAPSHOT-266";
private static final String minVelocityVersion = "velocity-3.2.0-SNAPSHOT-330";
public ProxyServer server;
public final Logger logger;
@ -75,8 +75,8 @@ public class Ambassador {
boolean checkCompatibleVersion() {
//Update this when changing minVelocityVersion
try {
MinecraftConnection.class.getDeclaredMethod("setActiveSessionHandler", StateRegistry.class);
} catch (NoSuchMethodException e) {
Class.forName("com.velocitypowered.proxy.protocol.packet.DisconnectPacket");
} catch (ClassNotFoundException e) {
return false;
}
return true;