Cleanup 2 warnings in ReagentDispenserSystem (#37622)
* Cleanup 2 warnings in ReagentDispenserSystem * Eh, let's be specific
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user