mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 19:02:21 +01:00
fix 13.00, performance
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user