Disabled sponge loaded chunks calculation since it seems to affect ticks

This commit is contained in:
Rsl1122 2018-05-31 09:45:46 +03:00
parent c68a48d57a
commit e5448eedb5

View File

@ -60,7 +60,7 @@ public class SpongeTPSCountTimer extends TPSCountTimer<PlanSponge> {
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<PlanSponge> {
* @return amount of loaded chunks
*/
private int getLoadedChunks() {
// DISABLED
int loaded = 0;
for (World world : Sponge.getGame().getServer().getWorlds()) {
loaded += world.getLoadedChunks().spliterator().estimateSize();