mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-13 03:05:52 -07:00
Performance update to remove several very high counts of temp object creation
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user