Skip to content

Commit

Permalink
I love #if blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
ElectroJr committed Jan 12, 2025
1 parent 6973c4e commit d2ec872
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Robust.Client/GameStates/ClientGameStateManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -695,15 +695,15 @@ private void MergeImplicitData()

foreach (var netEntity in _created)
{
#if EXCEPTION_TOLERANCE
if (!_entityManager.TryGetEntityData(netEntity, out _, out var meta))
if (!_entities.TryGetEntityData(netEntity, out _, out var meta))
{
_sawmill.Error($"Encountered deleted entity while merging implicit data! NetEntity: {netEntity}");

#if !EXCEPTION_TOLERANCE
throw new KeyNotFoundException();
#endif
continue;
}
#else
var (_, meta) = _entities.GetEntityData(netEntity);
#endif

var compData = _compDataPool.Get();
_outputData.Add(netEntity, compData);
Expand Down

0 comments on commit d2ec872

Please sign in to comment.