- fix: Fix crawl.

This commit is contained in:
Aviu00
2024-03-22 13:40:57 +03:00
parent 02b2c19035
commit fc75b6e10f
2 changed files with 6 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
using Content.Shared._Amour.Crawl;
using Content.Shared.Standing;
namespace Content.Shared._Amour.InteractionPanel.Checks;
@@ -22,7 +22,7 @@ public sealed class IsUserCrawl : IInteractionCheck
{
public bool IsAvailable(Entity<InteractionPanelComponent> user, Entity<InteractionPanelComponent> target, IEntityManager entityManager)
{
return entityManager.HasComponent<CrawlComponent>(user);
return entityManager.System<StandingStateSystem>().IsDown(user);
}
}
@@ -30,6 +30,6 @@ public sealed class IsTargetCrawl : IInteractionCheck
{
public bool IsAvailable(Entity<InteractionPanelComponent> user, Entity<InteractionPanelComponent> target, IEntityManager entityManager)
{
return entityManager.HasComponent<CrawlComponent>(target);
return entityManager.System<StandingStateSystem>().IsDown(target);
}
}