From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Fri, 4 Apr 2025 17:49:21 +0000 (+1100) Subject: Remove embed mispredict (#36297) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=d844ec250e1752084f583a140c02b93769c56836;p=space-station-14.git Remove embed mispredict (#36297) * Remove embed mispredict I don't know why this is here but it doesn't seem to cause issues and transforms should be fully predicted so if there are bugs I will deal with them as they come up. * a --- diff --git a/Content.Shared/Projectiles/SharedProjectileSystem.cs b/Content.Shared/Projectiles/SharedProjectileSystem.cs index 7161a39e0a..3fcff5ae56 100644 --- a/Content.Shared/Projectiles/SharedProjectileSystem.cs +++ b/Content.Shared/Projectiles/SharedProjectileSystem.cs @@ -66,8 +66,7 @@ public abstract partial class SharedProjectileSystem : EntitySystem private void OnEmbedRemove(Entity embeddable, ref RemoveEmbeddedProjectileEvent args) { - // Whacky prediction issues. - if (args.Cancelled || _net.IsClient) + if (args.Cancelled) return; EmbedDetach(embeddable, embeddable.Comp, args.User);