From e5448eedb5b7e184c4ca7c5c7a4a77390878a5b2 Mon Sep 17 00:00:00 2001 From: Rsl1122 Date: Thu, 31 May 2018 09:45:46 +0300 Subject: [PATCH] Disabled sponge loaded chunks calculation since it seems to affect ticks --- .../plan/system/tasks/server/SpongeTPSCountTimer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Plan/src/main/java/com/djrapitops/plan/system/tasks/server/SpongeTPSCountTimer.java b/Plan/src/main/java/com/djrapitops/plan/system/tasks/server/SpongeTPSCountTimer.java index 23f29fb52..dea05e183 100644 --- a/Plan/src/main/java/com/djrapitops/plan/system/tasks/server/SpongeTPSCountTimer.java +++ b/Plan/src/main/java/com/djrapitops/plan/system/tasks/server/SpongeTPSCountTimer.java @@ -60,7 +60,7 @@ public class SpongeTPSCountTimer extends TPSCountTimer { double tps = Sponge.getGame().getServer().getTicksPerSecond(); int playersOnline = ServerInfo.getServerProperties().getOnlinePlayers(); latestPlayersOnline = playersOnline; - int loadedChunks = getLoadedChunks(); + int loadedChunks = -1; // getLoadedChunks(); int entityCount = getEntityCount(); return TPSBuilder.get() @@ -80,6 +80,7 @@ public class SpongeTPSCountTimer extends TPSCountTimer { * @return amount of loaded chunks */ private int getLoadedChunks() { + // DISABLED int loaded = 0; for (World world : Sponge.getGame().getServer().getWorlds()) { loaded += world.getLoadedChunks().spliterator().estimateSize();