mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-17 13:24:17 -07:00
Some efficiency updates to hit-mechanics. Thanks mintplant for the PR.
This commit is contained in:
@@ -175,7 +175,7 @@ public class EntityFishingHook extends Entity {
|
||||
MovingObjectPosition movingobjectposition1 = axisalignedbb.a(vec3d, vec3d1);
|
||||
|
||||
if (movingobjectposition1 != null) {
|
||||
d5 = vec3d.b(movingobjectposition1.f);
|
||||
d5 = vec3d.c(movingobjectposition1.f); // CraftBukkit - distance efficiency
|
||||
if (d5 < d4 || d4 == 0.0D) {
|
||||
entity = entity1;
|
||||
d4 = d5;
|
||||
|
Reference in New Issue
Block a user