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
This commit is contained in:
@@ -66,8 +66,7 @@ public abstract partial class SharedProjectileSystem : EntitySystem
|
|||||||
|
|
||||||
private void OnEmbedRemove(Entity<EmbeddableProjectileComponent> embeddable, ref RemoveEmbeddedProjectileEvent args)
|
private void OnEmbedRemove(Entity<EmbeddableProjectileComponent> embeddable, ref RemoveEmbeddedProjectileEvent args)
|
||||||
{
|
{
|
||||||
// Whacky prediction issues.
|
if (args.Cancelled)
|
||||||
if (args.Cancelled || _net.IsClient)
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
EmbedDetach(embeddable, embeddable.Comp, args.User);
|
EmbedDetach(embeddable, embeddable.Comp, args.User);
|
||||||
|
|||||||
Reference in New Issue
Block a user