Remove some warnings (#5391)

* Remove unused Dependency fields

* Remove noop null check
This commit is contained in:
Clyybber
2021-11-19 00:46:35 +01:00
committed by GitHub
parent 2744b67539
commit 6ac2446d26
10 changed files with 0 additions and 15 deletions

View File

@@ -88,9 +88,6 @@ namespace Content.Server.Construction.Components
{
var stack = EntitySystem.Get<StackSystem>().Spawn(amount, stackType, Owner.Transform.Coordinates);
if (stack == null)
throw new Exception($"Couldn't spawn stack of type {stackType}!");
if (!partContainer.Insert(Owner.EntityManager.GetEntity(stack)))
throw new Exception($"Couldn't insert machine material of type {stackType} to machine with prototype {Owner.Prototype?.ID ?? "N/A"}");
}