diff options
author | Erik Broes <erikbroes@grum.nl> | 2011-11-26 18:27:39 +0100 |
---|---|---|
committer | Erik Broes <erikbroes@grum.nl> | 2011-11-26 18:27:39 +0100 |
commit | ba608f55e4afe7ded3f31d4723d1e74d910015fc (patch) | |
tree | 7ac2e0a6ba0db6feb79a67b0080c826c8b30c553 /src/main/java/net/minecraft/server/EntityCreature.java | |
parent | 9907638130278944613bd476f6f23c1617899174 (diff) | |
download | craftbukkit-ba608f55e4afe7ded3f31d4723d1e74d910015fc.tar craftbukkit-ba608f55e4afe7ded3f31d4723d1e74d910015fc.tar.gz craftbukkit-ba608f55e4afe7ded3f31d4723d1e74d910015fc.tar.lz craftbukkit-ba608f55e4afe7ded3f31d4723d1e74d910015fc.tar.xz craftbukkit-ba608f55e4afe7ded3f31d4723d1e74d910015fc.zip |
Remove expensive debugcalls from production code
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityCreature.java')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityCreature.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/net/minecraft/server/EntityCreature.java b/src/main/java/net/minecraft/server/EntityCreature.java index 0f0bf221..1df836fe 100644 --- a/src/main/java/net/minecraft/server/EntityCreature.java +++ b/src/main/java/net/minecraft/server/EntityCreature.java @@ -22,7 +22,7 @@ public abstract class EntityCreature extends EntityLiving { } protected void m_() { - MethodProfiler.a("ai"); + // MethodProfiler.a("ai"); // CraftBukkit -- not in production code if (this.f > 0) { --this.f; } @@ -73,7 +73,7 @@ public abstract class EntityCreature extends EntityLiving { } } - MethodProfiler.a(); + // MethodProfiler.a(); // CraftBukkit -- not in production code if (!this.e && this.target != null && (this.pathEntity == null || this.random.nextInt(20) == 0)) { this.pathEntity = this.world.findPath(this, this.target, f); } else if (!this.e && (this.pathEntity == null && this.random.nextInt(180) == 0 || this.random.nextInt(120) == 0 || this.f > 0) && this.aS < 100) { @@ -86,7 +86,7 @@ public abstract class EntityCreature extends EntityLiving { this.pitch = 0.0F; if (this.pathEntity != null && this.random.nextInt(100) != 0) { - MethodProfiler.a("followpath"); + // MethodProfiler.a("followpath"); // CraftBukkit -- not in production code Vec3D vec3d = this.pathEntity.a(this); double d0 = (double) (this.length * 2.0F); @@ -154,7 +154,7 @@ public abstract class EntityCreature extends EntityLiving { this.aW = true; } - MethodProfiler.a(); + // MethodProfiler.a(); // CraftBukkit -- not in production code } else { super.m_(); this.pathEntity = null; @@ -162,7 +162,7 @@ public abstract class EntityCreature extends EntityLiving { } protected void C() { - MethodProfiler.a("stroll"); + // MethodProfiler.a("stroll"); // CraftBukkit -- not in production code boolean flag = false; int i = -1; int j = -1; @@ -188,7 +188,7 @@ public abstract class EntityCreature extends EntityLiving { this.pathEntity = this.world.a(this, i, j, k, 10.0F); } - MethodProfiler.a(); + // MethodProfiler.a(); // CraftBukkit -- not in production code } protected void a(Entity entity, float f) {} |