Skip to content

Commit

Permalink
Set the folia TPS provider to 15 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
Fulminazzo committed Mar 9, 2024
1 parent 8b97fef commit 158509b
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,8 @@ public double getTps() {
TickData.TickReportData report = TickRegionScheduler.getCurrentRegion()
.getData()
.getRegionSchedulingHandle()
.getTickReport5s(System.nanoTime());
.getTickReport15s(System.nanoTime());

double average = report.tpsData().segmentAll().average();

return Bukkit.getTPS()[0];
// return report == null ? 0D : average;
return report.tpsData().segmentAll().average();
}
}

0 comments on commit 158509b

Please sign in to comment.