Fix 3000 errors
This commit is contained in:
@@ -2,6 +2,7 @@ using Content.Shared.Security;
|
||||
using JetBrains.Annotations;
|
||||
using Robust.Client.GameObjects;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.IoC;
|
||||
|
||||
namespace Content.Client.Security
|
||||
{
|
||||
@@ -12,7 +13,8 @@ namespace Content.Client.Security
|
||||
{
|
||||
base.OnChangeData(component);
|
||||
|
||||
if (!component.Owner.TryGetComponent(out SpriteComponent? sprite))
|
||||
var entities = IoCManager.Resolve<IEntityManager>();
|
||||
if (!entities.TryGetComponent(component.Owner, out SpriteComponent? sprite))
|
||||
return;
|
||||
|
||||
if (!component.TryGetData(DeployableBarrierVisuals.State, out DeployableBarrierState state))
|
||||
|
||||
Reference in New Issue
Block a user