第33批十五次修正(诊断增强):给双箱/单箱回填路径加成功诊断日志(cap/filled/塞入数),定位小箱也发空箱根因
This commit is contained in:
@@ -598,9 +598,13 @@ public class ChestCarryManager implements Listener {
|
|||||||
return; // 回退已处理,不再回填
|
return; // 回退已处理,不再回填
|
||||||
}
|
}
|
||||||
// 双箱已连(54格)→ 立即回填
|
// 双箱已连(54格)→ 立即回填
|
||||||
|
plugin.getLogger().info("[箱子搬运][诊断] 双箱已连 placedSize=" + placedSize
|
||||||
|
+ " 需" + slotCountFinal + " 立即回填");
|
||||||
doBackfill(placedFinal, data, placerUuid);
|
doBackfill(placedFinal, data, placerUuid);
|
||||||
} else {
|
} else {
|
||||||
// 单箱场景(≤27格):立即回填(原逻辑)
|
// 单箱场景(≤27格):立即回填(原逻辑)
|
||||||
|
plugin.getLogger().info("[箱子搬运][诊断] 单箱场景 slotCount=" + slotCount
|
||||||
|
+ " 需" + countSlots(items0) + " 立即回填");
|
||||||
doBackfill(placed, data, placerUuid);
|
doBackfill(placed, data, placerUuid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -885,8 +889,12 @@ public class ChestCarryManager implements Listener {
|
|||||||
filled++;
|
filled++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (filled < countSlots(items)) {
|
int totalSlots = countSlots(items);
|
||||||
int missing = countSlots(items) - filled;
|
plugin.getLogger().info("[箱子搬运][诊断] 回填完成 cap=" + cap + "格 filled=" + filled
|
||||||
|
+ "/" + totalSlots + " items数=" + items.length
|
||||||
|
+ "(" + placedIn.getX() + "," + placedIn.getY() + "," + placedIn.getZ() + ")");
|
||||||
|
if (filled < totalSlots) {
|
||||||
|
int missing = totalSlots - filled;
|
||||||
plugin.getLogger().info("[箱子搬运][诊断] 容器仅 " + cap + " 格," + missing + " 件未塞入 → 重新打包寄玩家");
|
plugin.getLogger().info("[箱子搬运][诊断] 容器仅 " + cap + " 格," + missing + " 件未塞入 → 重新打包寄玩家");
|
||||||
List<ItemStack> missingList = new ArrayList<>();
|
List<ItemStack> missingList = new ArrayList<>();
|
||||||
for (int mi = filled; mi < items.length; mi++) {
|
for (int mi = filled; mi < items.length; mi++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user