Merge remote-tracking branch 'origin/1.21.1' into 26.1
This commit is contained in:
commit
564d607db1
|
|
@ -87,7 +87,9 @@ public abstract class LevelChunkMixin extends ChunkAccess {
|
||||||
BlockEntity blockEntity = this.getBlockEntity(pos.immutable(), LevelChunk.EntityCreationType.IMMEDIATE);
|
BlockEntity blockEntity = this.getBlockEntity(pos.immutable(), LevelChunk.EntityCreationType.IMMEDIATE);
|
||||||
String blockName = state.getBlock().toString();
|
String blockName = state.getBlock().toString();
|
||||||
if (blockEntity != null) {
|
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 {
|
} else {
|
||||||
ModernFix.LOGGER.error("Block entity is missing for {} at {}, but could not be created", blockName, pos.toShortString());
|
ModernFix.LOGGER.error("Block entity is missing for {} at {}, but could not be created", blockName, pos.toShortString());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -78,8 +78,8 @@ public class ModernFixMixinPlugin implements IMixinConfigPlugin {
|
||||||
while(true) {
|
while(true) {
|
||||||
try {
|
try {
|
||||||
Thread.sleep(60000);
|
Thread.sleep(60000);
|
||||||
logger.error("------ DEBUG THREAD DUMP (occurs every 60 seconds) ------");
|
logger.info("------ DEBUG THREAD DUMP (occurs every 60 seconds) ------");
|
||||||
logger.error(ThreadDumper.obtainThreadDump());
|
logger.info(ThreadDumper.obtainThreadDump());
|
||||||
} catch(InterruptedException | RuntimeException e) {}
|
} catch(InterruptedException | RuntimeException e) {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -300,4 +300,4 @@ public class ModernFixMixinPlugin implements IMixinConfigPlugin {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user