mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-18 03:55:19 -04:00
Fix being pushed after being /tp ed to by someone (Thanks goodlyay)
This commit is contained in:
parent
71a21714a0
commit
91a3ff21b5
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user