Change ThrownItemComponent to be removed after flytime (#20700)

This commit is contained in:
DrSmugleaf
2023-10-06 17:43:54 -07:00
committed by GitHub
parent 6af7c90b73
commit 783ed6f917
4 changed files with 77 additions and 35 deletions

View File

@@ -259,6 +259,7 @@ public abstract partial class SharedTetherGunSystem : EntitySystem
{
var thrown = EnsureComp<ThrownItemComponent>(component.Tethered.Value);
_thrown.LandComponent(component.Tethered.Value, thrown, targetPhysics, true);
_thrown.StopThrow(component.Tethered.Value, thrown);
}
_physics.SetBodyStatus(targetPhysics, BodyStatus.OnGround);