mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-22 10:05:12 +01:00
Fix breaking change caused by VelocityPowered/Velocity@853fd22
This commit is contained in:
parent
858e0a5b21
commit
b10ca3ebcf
@ -18,7 +18,8 @@ public class VelocityVersionProvider extends VersionProvider {
|
||||
public int getServerProtocol(UserConnection user) throws Exception {
|
||||
// TODO Have one constant list forever until restart? (Might limit plugins if they change this)
|
||||
List<Integer> sorted = new ArrayList<>(com.velocitypowered.api.network.ProtocolVersion.ID_TO_PROTOCOL_CONSTANT.keySet());
|
||||
sorted.remove(Integer.valueOf(-1)); // Unknown/legacy
|
||||
sorted.remove(Integer.valueOf(-1)); // Unknown
|
||||
sorted.remove(Integer.valueOf(-2)); // Legacy
|
||||
Collections.sort(sorted);
|
||||
|
||||
int playerVersion = user.get(ProtocolInfo.class).getProtocolVersion();
|
||||
|
Loading…
Reference in New Issue
Block a user