Skip to content

Commit

Permalink
Update HeartNetwork.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
InvalidArgument3 committed Oct 27, 2024
1 parent 5d173d6 commit 1268b8e
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,16 @@ public void UnloadData() {
I = null;
}

public void Update()
{
public void Update() {
if (MasterSession.I == null || Log.IsUnloaded)
return;

_networkLoadUpdate--;
if (_networkLoadUpdate <= 0)
{
if (_networkLoadUpdate <= 0) {
_networkLoadUpdate = NetworkLoadTicks;
TotalNetworkLoad = 0;
foreach (var networkLoadArray in TypeNetworkLoad.Keys.ToArray())
{

foreach (var networkLoadArray in TypeNetworkLoad.Keys.ToArray()) {
TotalNetworkLoad += TypeNetworkLoad[networkLoadArray];
TypeNetworkLoad[networkLoadArray] = 0;
}
Expand Down

0 comments on commit 1268b8e

Please sign in to comment.