Skip to content

Commit

Permalink
Update min version checker to b330
Browse files Browse the repository at this point in the history
  • Loading branch information
adde0109 committed Mar 29, 2024
1 parent 21d0c11 commit 8ead34c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/org/adde0109/ambassador/Ambassador.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
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;
Expand Down Expand Up @@ -75,8 +75,8 @@ public Ambassador(ProxyServer server, Logger logger, @DataDirectory Path dataDir
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;
Expand Down

0 comments on commit 8ead34c

Please sign in to comment.