Skip to content

Commit

Permalink
Downcast Entity to EntityUid
Browse files Browse the repository at this point in the history
  • Loading branch information
whatston3 committed Dec 27, 2024
1 parent 1dd80a0 commit a27193f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Content.Server/_NF/Cargo/Systems/CargoSystem.TradeCrates.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@ private void DisableTradeCratePriority(EntityUid uid)

private void OnDestinationInit(Entity<TradeCrateDestinationComponent> ent, ref ComponentInit ev)
{
if (!_destinations.Contains(ent.Owner))
_destinations.Add(ent.Owner);
if (!_destinations.Contains(ent))
_destinations.Add(ent);
}

private void OnDestinationRemove(Entity<TradeCrateDestinationComponent> ent, ref ComponentRemove ev)
{
_destinations.Remove(ent.Owner);
_destinations.Remove(ent);
}

private void CleanupTradeCrateDestinations()
Expand Down

0 comments on commit a27193f

Please sign in to comment.