Fix 3000 errors
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
using JetBrains.Annotations;
|
||||
using Robust.Client.GameObjects;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.IoC;
|
||||
|
||||
namespace Content.Client.Wall
|
||||
{
|
||||
@@ -22,7 +23,8 @@ namespace Content.Client.Wall
|
||||
{
|
||||
var entity = component.Owner;
|
||||
|
||||
if (!entity.TryGetComponent(out ISpriteComponent? sprite)) return;
|
||||
var entities = IoCManager.Resolve<IEntityManager>();
|
||||
if (!entities.TryGetComponent(entity, out ISpriteComponent? sprite)) return;
|
||||
|
||||
if (stage < 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user