Skip to content

Commit

Permalink
add chunk loading debug to mek debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
thiakil committed Sep 3, 2024
1 parent 2c1ef90 commit 5913765
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import mekanism.api.MekanismAPI;
import mekanism.api.SerializationConstants;
import mekanism.api.Upgrade;
import mekanism.common.Mekanism;
Expand Down Expand Up @@ -165,6 +166,11 @@ private void refreshChunkTickets(@NotNull ServerLevel world, @NotNull BlockPos p
}
LOGGER.debug("refreshChunkTickets(): Removed {} no longer valid chunk tickets, and added {} newly valid chunk tickets. Pos: {} World: {}", removed, added, pos,
world.dimension().location());
if (MekanismAPI.debug) {
LOGGER.debug("Current set: {}", chunkSet);
LOGGER.debug("Tile chunk: {}", ChunkPos.asLong(tile.getBlockPos()));
LOGGER.debug("Tile requested: {}", newChunks);
}
}
}
}
Expand Down Expand Up @@ -339,6 +345,7 @@ private void validateTickets(ServerLevel world, ResourceLocation worldName, Bloc
// or if some of it needs to be recalculated such as the miner no longer having a target chunk
LOGGER.info("validateTickets(): Removed {} no longer valid chunk tickets, and added {} newly valid chunk tickets. Pos: {} World: {}",
removed, added, pos, worldName);

}
}
} else {
Expand Down

0 comments on commit 5913765

Please sign in to comment.