Merge pull request #261 from frosty-dev/funnyFix

Lets try
This commit is contained in:
BIGZi0348
2025-02-23 22:37:20 +03:00
committed by GitHub
4 changed files with 40 additions and 36 deletions

View File

@@ -9,6 +9,10 @@ public sealed class HasSmallDistance : IInteractionCheck
{ {
var transformSystem = entityManager.System<SharedTransformSystem>(); var transformSystem = entityManager.System<SharedTransformSystem>();
if (!entityManager.HasComponent<TransformComponent>(user) ||
!entityManager.HasComponent<TransformComponent>(target))
return false;
if (_range <= 0) if (_range <= 0)
return true; return true;