feat: protect mod payloads with main-thread ownership in 1.1.17

This commit is contained in:
Disy committed 2026-10-06 17:36:00 +08:00
1 parent 691e949691
commit 763c015103
29 files changed
+1552 -53

No files matched your search

@@ -166,6 +166,10 @@ public final class MasterCommand {
dimensionName(dimension),
EntityTickParallel.missedShards(), ShardGate.teMissed(), ShardGate.chunkMissed());
ctx.getSource().sendSuccess(() -> Component.literal(msg), false);
ctx.getSource().sendSuccess(() -> Component.literal("线程交接:"
+ dev.modzuozhi.core.compat.ThreadOwnershipDiagnostics.timing()), false);
ctx.getSource().sendSuccess(() -> Component.literal(
dev.modzuozhi.core.compat.PayloadDiagnostics.snapshot(ctx.getSource().getServer())), false);
var loops = DimThreadCore.MANAGER.loopsSnapshot();
if (loops.isEmpty()) {
ctx.getSource().sendSuccess(() -> Component.literal("维度循环:无数据(尚未启动或已停止),不按 20 TPS 显示。"), false);