From c0a178dc45fbf16c64037cadffcbb3e1bc63e8f8 Mon Sep 17 00:00:00 2001 From: Spottedleaf Date: Fri, 25 Oct 2024 13:19:27 -0700 Subject: [PATCH] Fix MSPT command Used wrong variable for tick length --- patches/server/Add-tick-times-API-and-mspt-command.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/patches/server/Add-tick-times-API-and-mspt-command.patch b/patches/server/Add-tick-times-API-and-mspt-command.patch index 0e79c072b9..dbe9ac038d 100644 --- a/patches/server/Add-tick-times-API-and-mspt-command.patch +++ b/patches/server/Add-tick-times-API-and-mspt-command.patch @@ -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();