Skip to content

Commit

Permalink
Improved supported versions detection
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianMichael committed Apr 9, 2024
1 parent de57e9e commit fde38cc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public ViaVersionPlatformImpl(final Logger logger) {
}

public static List<ProtocolVersion> createVersionList() {
final List<ProtocolVersion> versions = new ArrayList<>(ProtocolVersion.getProtocols()).stream().filter(protocolVersion -> protocolVersion != ProtocolVersion.unknown && ProtocolVersion.getProtocols().indexOf(protocolVersion) >= 7).collect(Collectors.toList());
final List<ProtocolVersion> versions = new ArrayList<>(ProtocolVersion.getProtocols()).stream().filter(version -> version.newerThanOrEqualTo(ProtocolVersion.v1_8)).collect(Collectors.toList());
Collections.reverse(versions);
return versions;
}
Expand Down Expand Up @@ -143,7 +143,7 @@ public String getPluginVersion() {

@Override
public String getPlatformName() {
return "ViaLoadingBase by FlorianMichael";
return "ViaLoadingBase";
}

@Override
Expand Down

0 comments on commit fde38cc

Please sign in to comment.