mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 15:49:00 +01:00
Ensure that inactiveTick on EntityItem obeys magic values for age and pickupDelay.
This commit is contained in:
parent
f4d9e4a686
commit
af58d5536e
1 changed files with 2 additions and 2 deletions
|
@ -157,8 +157,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
+ public void inactiveTick() {
|
||||
+ // CraftBukkit start - Use wall time for pickup and despawn timers
|
||||
+ int elapsedTicks = MinecraftServer.currentTick - this.lastTick;
|
||||
+ this.pickupDelay -= elapsedTicks;
|
||||
+ this.age += elapsedTicks;
|
||||
+ if (this.pickupDelay != 32767) this.pickupDelay -= elapsedTicks;
|
||||
+ if (this.age != -32768) this.age += elapsedTicks;
|
||||
+ this.lastTick = MinecraftServer.currentTick;
|
||||
+ // CraftBukkit end
|
||||
+
|
||||
|
|
Loading…
Reference in a new issue