From 46141adb1d15566c5cedd76e409ebdb813ee86d2 Mon Sep 17 00:00:00 2001 From: xGinko Date: Sun, 24 Dec 2023 15:57:03 +0100 Subject: [PATCH] no need to finalize passed value here --- .../moomoo/anarchyexploitfixes/utils/TPSCache.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/AnarchyExploitFixesFolia/src/main/java/me/moomoo/anarchyexploitfixes/utils/TPSCache.java b/AnarchyExploitFixesFolia/src/main/java/me/moomoo/anarchyexploitfixes/utils/TPSCache.java index b94711e37..f49dcfb8a 100755 --- a/AnarchyExploitFixesFolia/src/main/java/me/moomoo/anarchyexploitfixes/utils/TPSCache.java +++ b/AnarchyExploitFixesFolia/src/main/java/me/moomoo/anarchyexploitfixes/utils/TPSCache.java @@ -19,10 +19,10 @@ public interface TPSCache { double getGlobalTPS(); - double getTPS(final Location location); - double getTPS(final World world, final int chunkX, final int chunkZ); + double getTPS(Location location); + double getTPS(World world, int chunkX, int chunkZ); - static @NotNull TPSCache create(final long checkDelayMillis) { + static @NotNull TPSCache create(long checkDelayMillis) { if (AnarchyExploitFixes.isServerFolia()) { return new Folia(AnarchyExploitFixes.getInstance(), checkDelayMillis); } else { @@ -51,7 +51,7 @@ public double getGlobalTPS() { } @Override - public double getTPS(final World world, final int chunkX, final int chunkZ) { + public double getTPS(World world, int chunkX, int chunkZ) { return getGlobalTPS(); } @@ -85,12 +85,12 @@ public double getGlobalTPS() { } @Override - public double getTPS(final Location location) { + public double getTPS(Location location) { return getTPS(location.getWorld(), location.getBlockX() >> 4, location.getBlockZ() >> 4); } @Override - public double getTPS(final World world, final int chunkX, final int chunkZ) { + public double getTPS(World world, int chunkX, int chunkZ) { AtomicDouble atomic_tps = new AtomicDouble(); this.server.getRegionScheduler().execute(plugin, world, chunkX, chunkZ, () -> { final ThreadedRegionizer.ThreadedRegion