Removes debug output for chunk unloading

This commit is contained in:
2021-10-11 01:20:50 +02:00
parent 9efc960696
commit 06757ef9ee
2 changed files with 0 additions and 6 deletions

View File

@ -18,17 +18,12 @@ public class ChunkUnloadThread implements Runnable {
//Peek at the first element to check if the chunk should be unloaded
ChunkUnloadRequest firstElement = unloadQueue.peek();
if (firstElement != null) {
Stargate.debug("ChunkUnloadThread", "Found chunk unload request: " + firstElement);
Stargate.debug("ChunkUnloadThread", "Current time: " + systemNanoTime);
}
//Repeat until all un-loadable chunks have been processed
while (firstElement != null && firstElement.getUnloadNanoTime() < systemNanoTime) {
unloadQueue.remove();
Chunk chunkToUnload = firstElement.getChunkToUnload();
//Allow the chunk to be unloaded
chunkToUnload.removePluginChunkTicket(Stargate.stargate);
Stargate.debug("ChunkUnloadThread", "Unloaded chunk " + chunkToUnload);
firstElement = unloadQueue.peek();
}
}