Removes debug output for chunk unloading
This commit is contained in:
parent
9efc960696
commit
06757ef9ee
@ -778,7 +778,6 @@ public class Portal {
|
||||
chunk.addPluginChunkTicket(Stargate.stargate);
|
||||
//Allow the chunk to unload after 3 seconds
|
||||
Stargate.addChunkUnloadRequest(new ChunkUnloadRequest(chunk, 3000L));
|
||||
Stargate.debug("loadChunks", "Added chunk unloading request for chunk " + chunk);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user