diff --git a/Shared/Behaviours/Ball.cs b/Shared/Behaviours/Ball.cs index a329ae3..613a0b0 100644 --- a/Shared/Behaviours/Ball.cs +++ b/Shared/Behaviours/Ball.cs @@ -70,7 +70,9 @@ public class Ball : Behaviour2D, IFirstFrameUpdate, ILoadContent, IPhysicsUpdate RigidBody.Velocity = information.Detected.Transform.Position.FromTo(information.Detector.Transform.Position).Normalized * RigidBody.Velocity.Magnitude; else RigidBody.Velocity = RigidBody.Velocity.Reflect(information.Normal); - networkServer?.SendToAll(new BallUpdatePacket(this)); + + if (information.Detected.Transform.BehaviourController.GetBehaviour() is null) + networkServer?.SendToAll(new BallUpdatePacket(this)); } public Ball() { }