Change log level from warn to debug for successfully created missing block entities

Closes #648
This commit is contained in:
Mustafa 2026-04-22 12:50:34 +03:00 committed by embeddedt
parent 4d2f0da1fc
commit 26bd7116a1
No known key found for this signature in database
GPG Key ID: A69433EC199B5613

View File

@ -88,7 +88,9 @@ public abstract class LevelChunkMixin extends ChunkAccess {
BlockEntity blockEntity = this.getBlockEntity(pos.immutable(), LevelChunk.EntityCreationType.IMMEDIATE);
String blockName = state.getBlock().toString();
if (blockEntity != null) {
ModernFix.LOGGER.warn("Created missing block entity for {} at {}", blockName, pos.toShortString());
if (ModernFix.LOGGER.isDebugEnabled()) {
ModernFix.LOGGER.debug("Created missing block entity for {} at {}", blockName, pos.toShortString());
}
} else {
ModernFix.LOGGER.error("Block entity is missing for {} at {}, but could not be created", blockName, pos.toShortString());
}