collide method Test noclip earlier

This commit is contained in:
FatSaw
2022-07-31 06:37:35 +03:00
parent f220a6a153
commit ac24d10a57

View File

@@ -1383,8 +1383,7 @@ public abstract class Entity implements ICommandListener, KeyedObject { // Paper
public void d(EntityHuman entityhuman) {}
public void collide(Entity entity) {
if (!this.x(entity)) {
if (!entity.noclip && !this.noclip) {
if (entity.noclip || this.noclip || this.x(entity)) return; // NeonPaper - Test this earlier
double d0 = entity.locX - this.locX;
double d1 = entity.locZ - this.locZ;
double d2 = MathHelper.a(d0, d1);
@@ -1413,9 +1412,6 @@ public abstract class Entity implements ICommandListener, KeyedObject { // Paper
entity.f(d0, 0.0D, d1);
}
}
}
}
}
public void f(double d0, double d1, double d2) {