From 8a77b49bb16ac2e2d1f4120c856612c499104323 Mon Sep 17 00:00:00 2001 From: Fabian Terhorst Date: Sat, 6 Jul 2019 16:28:50 +0200 Subject: [PATCH] Disable disconnect reason --- runtime/src/CSharpResource.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/runtime/src/CSharpResource.cpp b/runtime/src/CSharpResource.cpp index c355214298..814304d659 100644 --- a/runtime/src/CSharpResource.cpp +++ b/runtime/src/CSharpResource.cpp @@ -298,7 +298,7 @@ bool CSharpResource::OnEvent(const alt::CEvent* ev) { case alt::CEvent::Type::PLAYER_DISCONNECT: { auto disconnectEvent = reinterpret_cast(ev); auto disconnectPlayer = disconnectEvent->GetTarget(); - auto reason = disconnectEvent->GetReason(); + /*auto reason = disconnectEvent->GetReason(); if (reason != nullptr && reason.GetSize() > 0) { auto reasonCStr = reason.CStr(); if (reasonCStr != nullptr) { @@ -307,11 +307,11 @@ bool CSharpResource::OnEvent(const alt::CEvent* ev) { } else { OnPlayerDisconnectDelegate(disconnectPlayer, ""); - } - } else { + }*/ + //} else { OnPlayerDisconnectDelegate(disconnectPlayer, ""); - } + //} break; } case alt::CEvent::Type::REMOVE_ENTITY_EVENT: {