fix 13.00, performance

This commit is contained in:
Milxnor
2023-05-23 21:25:51 -04:00
parent 9d9412f103
commit 35d397b119
4 changed files with 75 additions and 10 deletions

View File

@@ -69,9 +69,8 @@ void ServerCheatHook(AFortPlayerControllerAthena* PlayerController, FString Msg)
auto lastBackslash = OldMsg.find_last_of("\\");
static auto World_NetDriverOffset = GetWorld()->GetOffset("NetDriver");
auto WorldNetDriver = GetWorld()->Get(World_NetDriverOffset);
static auto ClientConnectionsOffset = WorldNetDriver->GetOffset("ClientConnections");
auto& ClientConnections = WorldNetDriver->Get<TArray<UObject*>>(ClientConnectionsOffset);
auto WorldNetDriver = GetWorld()->Get<UNetDriver*>(World_NetDriverOffset);
auto& ClientConnections = WorldNetDriver->GetClientConnections();
if (firstBackslash != std::string::npos && lastBackslash != std::string::npos)
{