Do after checks for being inside container (#39880)

fix
This commit is contained in:
InsoPL 2025-09-10 21:22:24 +02:00 committed by Vanessa
parent 89ed29f5f1
commit 14f0b88295
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ public abstract partial class SharedDoAfterSystem : EntitySystem
{
if (args.DistanceThreshold != null)
{
if (!_interaction.InRangeUnobstructed(args.User, args.Target.Value, args.DistanceThreshold.Value))
if (!_interaction.InRangeAndAccessible(args.User, args.Target.Value, args.DistanceThreshold.Value))
return true;
}
}