- fix: Fix crawl.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user