Fix MSPT command

Used wrong variable for tick length
This commit is contained in:
Spottedleaf 2024-10-25 13:19:27 -07:00
parent 0fc6c032fb
commit c0a178dc45

View file

@ -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();