From 91a3ff21b5bda8f21c180b74b9f8bfa6bcdc133c Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Thu, 30 Nov 2017 08:39:47 +1100 Subject: [PATCH] Fix being pushed after being /tp ed to by someone (Thanks goodlyay) --- ClassicalSharp/Entities/Components/PhysicsComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ClassicalSharp/Entities/Components/PhysicsComponent.cs b/ClassicalSharp/Entities/Components/PhysicsComponent.cs index 6f92bbeae..5cadb9dc0 100644 --- a/ClassicalSharp/Entities/Components/PhysicsComponent.cs +++ b/ClassicalSharp/Entities/Components/PhysicsComponent.cs @@ -299,7 +299,7 @@ namespace ClassicalSharp.Entities { float dX = other.Position.X - entity.Position.X; float dZ = other.Position.Z - entity.Position.Z; float dist = dX * dX + dZ * dZ; - if (dist < 0.0001f || dist > 1f) continue; // TODO: range needs to be lower? + if (dist < 0.002f || dist > 1f) continue; // TODO: range needs to be lower? Vector3 dir = Vector3.Normalize(dX, 0, dZ); entity.Velocity -= dir * (1 - dist) / 32f; // TODO: should be 24/25