Fixed stinger grenade lag spikes (#36641)

* Fixed stinger lag spikes

* Simplify nullable checks

* More cleanup of projectile grenades

* Remove null default from ShootProjectile
This commit is contained in:
TGRCDev
2025-04-25 19:12:18 -07:00
committed by GitHub
parent bd51fd76d7
commit 79ae7e7abe
2 changed files with 5 additions and 3 deletions

View File

@@ -77,7 +77,7 @@ public sealed class ProjectileGrenadeSystem : EntitySystem
// slightly uneven, doesn't really change much, but it looks better
var direction = angle.ToVec().Normalized();
var velocity = _random.NextVector2(component.MinVelocity, component.MaxVelocity);
_gun.ShootProjectile(contentUid, direction, velocity, uid, null);
_gun.ShootProjectile(contentUid, direction, velocity, null);
}
}