Some efficiency updates to hit-mechanics. Thanks mintplant for the PR.
Dieser Commit ist enthalten in:
Ursprung
a753ee587d
Commit
233de0de2c
@ -150,7 +150,7 @@ public class EntityArrow extends Entity {
|
||||
MovingObjectPosition movingobjectposition1 = axisalignedbb1.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;
|
||||
|
@ -114,7 +114,7 @@ public class EntityFireball 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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren