- Timestamp:
- Jun 12, 2023, 3:21:34 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/LandClaimList.cs
r369 r446 41 41 42 42 foreach (KeyValuePair<PersistentPlayerData, List<Vector3i>> kvp in owners) { 43 Player p = PersistentContainer.Instance.Players [kvp.Key.UserIdentifier, false];43 Player p = PersistentContainer.Instance.Players.GetByInternalId (kvp.Key.UserIdentifier); 44 44 if (p == null) { 45 p = new Player (kvp.Key.UserIdentifier); 45 PlatformUserIdentifierAbs platformId = kvp.Key.PlatformUserIdentifier; 46 PlatformUserIdentifierAbs internalId = kvp.Key.UserIdentifier; 47 PlatformUserIdentifierAbs crossPlatformId = platformId.Equals (internalId) ? null : internalId; 48 p = new Player (internalId, platformId, crossPlatformId); 46 49 } 47 50 … … 68 71 69 72 public static OwnerFilter UserIdFilter (PlatformUserIdentifierAbs _userId) { 70 return _p => _p. PlatformId.Equals (_userId);73 return _p => _p.InternalId.Equals (_userId); 71 74 } 72 75
Note:
See TracChangeset
for help on using the changeset viewer.