Performance update to remove several very high counts of temp object creation

This commit is contained in:
Tahg
2011-12-06 08:52:45 -05:00
parent eead44a692
commit bc8f02788f
11 changed files with 223 additions and 141 deletions

View File

@@ -175,7 +175,9 @@ public abstract class EntityLiving extends Entity {
this.extinguish();
} else {
this.setAirTicks(maxAirTicks); // CraftBukkit - update maxAirTicks if no longer 300
if (this.getAirTicks() != 300) {
this.setAirTicks(maxAirTicks);
}
}
this.aw = this.ax;