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 GitHub
parent 1666e302c2
commit 327f217e18
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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;
}
}