Skip to content

Commit

Permalink
Fix merge error in LandblockManager (#4176)
Browse files Browse the repository at this point in the history
  • Loading branch information
LtRipley36706 authored May 12, 2024
1 parent c96ef83 commit 8932bbe
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Source/ACE.Server/Managers/LandblockManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,15 @@ public static int LandblockGroupsCount

public static List<LandblockGroup> GetLoadedLandblockGroups()
{
lock (landblockMutex)
return landblockGroups.ToList();
landblockLock.EnterReadLock();
try
{
return landblockGroups.ToList();
}
finally
{
landblockLock.ExitReadLock();
}
}

/// <summary>
Expand Down

0 comments on commit 8932bbe

Please sign in to comment.