feat: v1.1.0 区域扩地改为S形扫过矩形(不沿邦国边界,仍保证接壤)

这个提交包含在:
Lyizai
2026-08-17 09:26:58 +00:00
父节点 64e47e7781
当前提交 6cbd2a324a
共修改 3 个文件,包含 123 行新增和 34 行删除
@@ -563,7 +563,7 @@ implements SubtitleChatMonitor.Listener {
}
this.baritoneBridge.cancel();
client.player.getInventory().selectedSlot = slot;
client.interactionManager.interactItem(client.player, Hand.field_5808);
client.interactionManager.interactItem(client.player, Hand.MAIN_HAND);
this.eating = true;
this.status = "\u81ea\u52a8\u8fdb\u98df\u4e2d";
this.log("\u81ea\u52a8\u8fdb\u98df\uff0c\u9965\u997f\u503c " + foodLevel);
@@ -574,7 +574,7 @@ implements SubtitleChatMonitor.Listener {
private int findFoodSlot(PlayerInventory inventory) {
for (int slot = 0; slot < 36; ++slot) {
ItemStack stack = inventory.getStack(slot);
if (stack.isEmpty() || stack.getComponents().get(DataComponentTypes.field_50075) == null) continue;
if (stack.isEmpty() || stack.getComponents().get(DataComponentTypes.FOOD) == null) continue;
return slot;
}
return -1;