Remove expensive debugcalls from production code

This commit is contained in:
Erik Broes
2011-11-26 18:27:39 +01:00
parent 9907638130
commit ba608f55e4
4 changed files with 50 additions and 50 deletions

View File

@@ -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
}
}