From a27193fa5bb5fde249587800a44acdf1692db2a6 Mon Sep 17 00:00:00 2001 From: Whatstone Date: Fri, 27 Dec 2024 14:51:29 -0500 Subject: [PATCH] Downcast Entity to EntityUid --- Content.Server/_NF/Cargo/Systems/CargoSystem.TradeCrates.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Content.Server/_NF/Cargo/Systems/CargoSystem.TradeCrates.cs b/Content.Server/_NF/Cargo/Systems/CargoSystem.TradeCrates.cs index 23005dc4d87..54c259ef5dd 100644 --- a/Content.Server/_NF/Cargo/Systems/CargoSystem.TradeCrates.cs +++ b/Content.Server/_NF/Cargo/Systems/CargoSystem.TradeCrates.cs @@ -95,13 +95,13 @@ private void DisableTradeCratePriority(EntityUid uid) private void OnDestinationInit(Entity ent, ref ComponentInit ev) { - if (!_destinations.Contains(ent.Owner)) - _destinations.Add(ent.Owner); + if (!_destinations.Contains(ent)) + _destinations.Add(ent); } private void OnDestinationRemove(Entity ent, ref ComponentRemove ev) { - _destinations.Remove(ent.Owner); + _destinations.Remove(ent); } private void CleanupTradeCrateDestinations()