Inline UID
This commit is contained in:
@@ -35,13 +35,13 @@ namespace Content.Server.Botany.Components
|
||||
if (Seed == null)
|
||||
return;
|
||||
|
||||
if (IoCManager.Resolve<IEntityManager>().TryGetComponent(Owner.Uid, out SpriteComponent? sprite))
|
||||
if (IoCManager.Resolve<IEntityManager>().TryGetComponent(Owner, out SpriteComponent? sprite))
|
||||
{
|
||||
sprite.LayerSetRSI(0, Seed.PlantRsi);
|
||||
sprite.LayerSetState(0, Seed.PlantIconState);
|
||||
}
|
||||
|
||||
var solutionContainer = EntitySystem.Get<SolutionContainerSystem>().EnsureSolution(Owner.Uid, SolutionName);
|
||||
var solutionContainer = EntitySystem.Get<SolutionContainerSystem>().EnsureSolution(Owner, SolutionName);
|
||||
if (solutionContainer == null)
|
||||
{
|
||||
Logger.Warning($"No solution container found in {nameof(ProduceComponent)}.");
|
||||
|
||||
Reference in New Issue
Block a user