mirror of
https://github.com/PaperMC/Paper.git
synced 2025-09-02 21:33:52 -07:00
Fix item EAR ticks
Item entities only have their gravity ticked every 4 ticks when on ground. Fix that and also remove Spigot's arbitrary tick skipping. It's a terribly cheap way of getting extra performance that doesn't really work at all.
This commit is contained in:
@@ -84,6 +84,15 @@
|
||||
|
||||
this.xo = this.getX();
|
||||
this.yo = this.getY();
|
||||
@@ -162,7 +175,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
- if (!this.onGround() || this.getDeltaMovement().horizontalDistanceSqr() > 9.999999747378752E-6D || (this.tickCount + this.getId()) % 4 == 0) {
|
||||
+ if (!this.onGround() || this.getDeltaMovement().horizontalDistanceSqr() > 9.999999747378752E-6D || (this.tickCount + this.getId()) % 4 == 0) { // Paper - Diff on change; ActivationRange immunity
|
||||
this.move(MoverType.SELF, this.getDeltaMovement());
|
||||
this.applyEffectsFromBlocks();
|
||||
float f = 0.98F;
|
||||
@@ -188,9 +201,11 @@
|
||||
this.mergeWithNeighbours();
|
||||
}
|
||||
|
Reference in New Issue
Block a user