Cleanup 2 warnings in `ReagentDispenserSystem` (#37622)

* Cleanup 2 warnings in ReagentDispenserSystem

* Eh, let's be specific
This commit is contained in:
Tayrtahn 2025-05-19 18:18:10 -04:00 committed by Quanteey
parent 1e874d9977
commit 75e73c7578
1 changed files with 3 additions and 3 deletions

View File

@ -50,7 +50,7 @@ namespace Content.Server.Chemistry.EntitySystems
SubscribeLocalEvent<ReagentDispenserComponent, ReagentDispenserEjectContainerMessage>(OnEjectReagentMessage);
SubscribeLocalEvent<ReagentDispenserComponent, ReagentDispenserClearContainerSolutionMessage>(OnClearContainerSolutionMessage);
SubscribeLocalEvent<ReagentDispenserComponent, MapInitEvent>(OnMapInit, before: new []{typeof(ItemSlotsSystem)});
SubscribeLocalEvent<ReagentDispenserComponent, MapInitEvent>(OnMapInit, before: new[] { typeof(ItemSlotsSystem) });
}
private void SubscribeUpdateUiState<T>(Entity<ReagentDispenserComponent> ent, ref T ev)
@ -134,7 +134,7 @@ namespace Content.Server.Chemistry.EntitySystems
// Ensure that the reagent is something this reagent dispenser can dispense.
var storageLocation = message.StorageLocation;
var storedContainer = storage.StoredItems.FirstOrDefault(kvp => kvp.Value == storageLocation).Key;
if (storedContainer == null)
if (storedContainer == EntityUid.Invalid)
return;
var outputContainer = _itemSlotsSystem.GetItemOrNull(reagentDispenser, SharedReagentDispenser.OutputSlotName);
@ -165,7 +165,7 @@ namespace Content.Server.Chemistry.EntitySystems
var storageLocation = message.StorageLocation;
var storedContainer = storage.StoredItems.FirstOrDefault(kvp => kvp.Value == storageLocation).Key;
if (storedContainer == null)
if (storedContainer == EntityUid.Invalid)
return;
_handsSystem.TryPickupAnyHand(message.Actor, storedContainer);