mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 07:20:24 +01:00
Fix MSPT command
Used wrong variable for tick length
This commit is contained in:
parent
0fc6c032fb
commit
c0a178dc45
1 changed files with 3 additions and 3 deletions
|
@ -145,9 +145,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
this.tickTimesNanos[l] = k;
|
||||
this.smoothedTickTimeMillis = this.smoothedTickTimeMillis * 0.8F + (float) k / (float) TimeUtil.NANOSECONDS_PER_MILLISECOND * 0.19999999F;
|
||||
+ // Paper start - Add tick times API and /mspt command
|
||||
+ this.tickTimes5s.add(this.tickCount, j);
|
||||
+ this.tickTimes10s.add(this.tickCount, j);
|
||||
+ this.tickTimes60s.add(this.tickCount, j);
|
||||
+ this.tickTimes5s.add(this.tickCount, k);
|
||||
+ this.tickTimes10s.add(this.tickCount, k);
|
||||
+ this.tickTimes60s.add(this.tickCount, k);
|
||||
+ // Paper end - Add tick times API and /mspt command
|
||||
this.logTickMethodTime(i);
|
||||
gameprofilerfiller.pop();
|
||||
|
|
Loading…
Reference in a new issue