fix messages

This commit is contained in:
okx-code
2024-03-23 20:36:59 +00:00
parent bd7fc1c27a
commit f4bc6fb407
2 changed files with 5 additions and 11 deletions

View File

@@ -230,7 +230,7 @@ public class WorldChunkMetaManager {
}
if (System.currentTimeMillis() - coord.getLastUnloadedTime() > UNLOAD_DELAY) {
CHUNK_META_LOGGER.fine("[Chunkmeta] Unloading chunk " + coord + " - unloaded: " + coord.getLastUnloadedTime());
CHUNK_META_LOGGER.fine("Unloading chunk " + coord + " - unloaded: " + coord.getLastUnloadedTime());
unloadChunkCoord(coord);
} else {
if (readdList == null) {
@@ -241,9 +241,7 @@ public class WorldChunkMetaManager {
}
}
if (readdList != null) {
if (ChunkMetaCommand.chunkMetaLogsEnabled()) {
CHUNK_META_LOGGER.fine("[Chunkmeta] Unloaded chunks remaining unsaved: " + readdList);
}
CHUNK_META_LOGGER.fine("Unloaded chunks remaining unsaved: " + readdList);
unloadingQueue.addAll(readdList);
}
}, UNLOAD_CHECK_INTERVAL, UNLOAD_CHECK_INTERVAL, TimeUnit.MILLISECONDS);
@@ -273,9 +271,7 @@ public class WorldChunkMetaManager {
// written to the db
synchronized (metas) {
if (coord.isUnloaded()) {
if (ChunkMetaCommand.chunkMetaLogsEnabled()) {
CHUNK_META_LOGGER.fine("[Chunkmeta] Chunk no longer being tracked: " + coord);
}
CHUNK_META_LOGGER.fine("Chunk no longer being tracked: " + coord);
metas.remove(coord);
coord.clearUnloaded();
}
@@ -322,9 +318,7 @@ public class WorldChunkMetaManager {
*/
void unloadChunk(int x, int z) {
ChunkCoord chunkCoord = getChunkCoord(x, z, false, false);
if (ChunkMetaCommand.chunkMetaLogsEnabled()) {
CHUNK_META_LOGGER.fine("[Chunkmeta] Add to unloading queue: " + chunkCoord);
}
CHUNK_META_LOGGER.fine("Add to unloading queue: " + chunkCoord);
// chunkCoord can never be null here, otherwise our data structure would be
// broken, in which case we'd want to know
chunkCoord.minecraftChunkUnloaded();

View File

@@ -54,7 +54,7 @@ public abstract class TableBasedBlockChunkMeta<D extends TableBasedDataObject>
@Override
public void insert() {
CHUNK_META_LOGGER.fine("[Chunkmeta] Inserting at " + chunkCoord);
CHUNK_META_LOGGER.fine("Inserting at " + chunkCoord);
for (D data : modifiedEntries) {
switch (data.getCacheState()) {
case NORMAL: