Some efficiency updates to hit-mechanics. Thanks mintplant for the PR.
This commit is contained in:
@@ -137,7 +137,7 @@ public abstract class EntityProjectile extends Entity {
|
||||
MovingObjectPosition movingobjectposition1 = axisalignedbb.a(vec3d, vec3d1);
|
||||
|
||||
if (movingobjectposition1 != null) {
|
||||
double d1 = vec3d.b(movingobjectposition1.f);
|
||||
double d1 = vec3d.c(movingobjectposition1.f); // CraftBukkit - distance efficiency
|
||||
|
||||
if (d1 < d0 || d0 == 0.0D) {
|
||||
entity = entity1;
|
||||
|
||||
Reference in New Issue
Block a user