reuse minclientversion where possible

Co-authored-by: Tixx <83774803+WiserTixx@users.noreply.github.com>
This commit is contained in:
Lion 2024-10-09 18:03:01 +02:00 committed by GitHub
parent 7dd2d89ad9
commit c39beb5b72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -296,7 +296,7 @@ std::shared_ptr<TClient> TNetwork::Authentication(TConnection&& RawConnection) {
Version MinClientVersion = Application::ClientMinimumVersion();
if (Application::IsOutdated(ClientVersion, MinClientVersion)) {
beammp_errorf("Client tried to connect with version '{}', but only versions >= {} are allowed",
ClientVersion.AsString(), Application::ClientMinimumVersion().AsString());
ClientVersion.AsString(), MinClientVersion.AsString());
ClientKick(*Client, fmt::format("Outdated version, launcher version >={} required to join!", MinClientVersion.AsString()));
return nullptr;
}