fix DoAfter DistanceThreshold (#39276)
This commit is contained in:
@@ -192,11 +192,6 @@ public abstract partial class SharedDoAfterSystem : EntitySystem
|
||||
if (!_interaction.InRangeUnobstructed(args.User, args.Target.Value, args.DistanceThreshold.Value))
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!_interaction.InRangeUnobstructed(args.User, args.Target.Value))
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// Whether the distance between the tool and the user has grown too much.
|
||||
@@ -209,11 +204,6 @@ public abstract partial class SharedDoAfterSystem : EntitySystem
|
||||
args.DistanceThreshold.Value))
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!_interaction.InRangeUnobstructed(args.User,args.Used.Value))
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
if (args.AttemptFrequency == AttemptFrequency.EveryTick && !TryAttemptEvent(doAfter))
|
||||
|
||||
Reference in New Issue
Block a user