diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-07-14 22:56:40 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-07-14 22:56:40 +0200 |
commit | ad6494fb36b1bb19f39796ad9d5ce4544a21f361 (patch) | |
tree | 515b05a0e434d0b63c9b1ef394515de3d4100b69 /src/Entities | |
parent | Fixed placing liquids over liquids (diff) | |
download | cuberite-ad6494fb36b1bb19f39796ad9d5ce4544a21f361.tar cuberite-ad6494fb36b1bb19f39796ad9d5ce4544a21f361.tar.gz cuberite-ad6494fb36b1bb19f39796ad9d5ce4544a21f361.tar.bz2 cuberite-ad6494fb36b1bb19f39796ad9d5ce4544a21f361.tar.lz cuberite-ad6494fb36b1bb19f39796ad9d5ce4544a21f361.tar.xz cuberite-ad6494fb36b1bb19f39796ad9d5ce4544a21f361.tar.zst cuberite-ad6494fb36b1bb19f39796ad9d5ce4544a21f361.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/ArrowEntity.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Entities/ArrowEntity.cpp b/src/Entities/ArrowEntity.cpp index d5e41bd46..a3a1667e4 100644 --- a/src/Entities/ArrowEntity.cpp +++ b/src/Entities/ArrowEntity.cpp @@ -79,8 +79,8 @@ void cArrowEntity::OnHitSolidBlock(const Vector3d & a_HitPos, eBlockFace a_HitFa } Vector3d Hit = a_HitPos; - Vector3d SinkMovement = (GetSpeed() / 800); - Hit += (SinkMovement * 0.01) / SinkMovement.Length(); // Make arrow sink into block a centimetre so it lodges (but not to far so it goes black clientside) + Vector3d SinkMovement = (GetSpeed() / 1000); + Hit += SinkMovement * (0.0005 / SinkMovement.Length()); // Make arrow sink into block a centimetre so it lodges (but not to far so it goes black clientside) super::OnHitSolidBlock(Hit, a_HitFace); Vector3i BlockHit = Hit.Floor(); |