mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-17 05:03:55 -07:00
Remove expensive debugcalls from production code
This commit is contained in:
@@ -192,7 +192,7 @@ public abstract class Entity {
|
||||
}
|
||||
|
||||
public void af() {
|
||||
MethodProfiler.a("entityBaseTick");
|
||||
// MethodProfiler.a("entityBaseTick"); // CraftBukkit -- not in production code
|
||||
if (this.vehicle != null && this.vehicle.dead) {
|
||||
this.vehicle = null;
|
||||
}
|
||||
@@ -295,7 +295,7 @@ public abstract class Entity {
|
||||
}
|
||||
|
||||
this.justCreated = false;
|
||||
MethodProfiler.a();
|
||||
// MethodProfiler.a(); // CraftBukkit -- not in production code
|
||||
}
|
||||
|
||||
protected void av() {
|
||||
@@ -365,7 +365,7 @@ public abstract class Entity {
|
||||
this.locY = this.boundingBox.b + (double) this.height - (double) this.bL;
|
||||
this.locZ = (this.boundingBox.c + this.boundingBox.f) / 2.0D;
|
||||
} else {
|
||||
MethodProfiler.a("move");
|
||||
// MethodProfiler.a("move"); // CraftBukkit -- not in production code
|
||||
this.bL *= 0.4F;
|
||||
double d3 = this.locX;
|
||||
double d4 = this.locZ;
|
||||
@@ -527,8 +527,8 @@ public abstract class Entity {
|
||||
}
|
||||
}
|
||||
|
||||
MethodProfiler.a();
|
||||
MethodProfiler.a("rest");
|
||||
// MethodProfiler.a(); // CraftBukkit -- not in production code
|
||||
// MethodProfiler.a("rest"); // CraftBukkit -- not in production code
|
||||
this.locX = (this.boundingBox.a + this.boundingBox.d) / 2.0D;
|
||||
this.locY = this.boundingBox.b + (double) this.height - (double) this.bL;
|
||||
this.locZ = (this.boundingBox.c + this.boundingBox.f) / 2.0D;
|
||||
@@ -641,7 +641,7 @@ public abstract class Entity {
|
||||
this.fireTicks = -this.maxFireTicks;
|
||||
}
|
||||
|
||||
MethodProfiler.a();
|
||||
// MethodProfiler.a(); // CraftBukkit -- not in production code
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user