Update min version checker to b330
This commit is contained in:
parent
21d0c11159
commit
8ead34ca6a
|
|
@ -46,7 +46,7 @@ import static com.velocitypowered.proxy.protocol.packet.brigadier.ArgumentIdenti
|
||||||
public class Ambassador {
|
public class Ambassador {
|
||||||
|
|
||||||
//Don't forget to update checkCompatibleVersion() when changing this value
|
//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 ProxyServer server;
|
||||||
public final Logger logger;
|
public final Logger logger;
|
||||||
|
|
@ -75,8 +75,8 @@ public class Ambassador {
|
||||||
boolean checkCompatibleVersion() {
|
boolean checkCompatibleVersion() {
|
||||||
//Update this when changing minVelocityVersion
|
//Update this when changing minVelocityVersion
|
||||||
try {
|
try {
|
||||||
MinecraftConnection.class.getDeclaredMethod("setActiveSessionHandler", StateRegistry.class);
|
Class.forName("com.velocitypowered.proxy.protocol.packet.DisconnectPacket");
|
||||||
} catch (NoSuchMethodException e) {
|
} catch (ClassNotFoundException e) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user