add IPv6 support

This commit is contained in:
Lion Kortlepel
2024-07-12 15:45:50 +02:00
parent 72022e3349
commit eaedeb5324
4 changed files with 58 additions and 19 deletions
+1 -1
View File
@@ -298,7 +298,7 @@ void LuaAPI::MP::Sleep(size_t Ms) {
bool LuaAPI::MP::IsPlayerConnected(int ID) {
auto MaybeClient = GetClient(Engine->Server(), ID);
if (MaybeClient && !MaybeClient.value().expired()) {
return MaybeClient.value().lock()->IsConnected();
return MaybeClient.value().lock()->IsUDPConnected();
} else {
return false;
}