Skip to content

Release 1.7.0: robustness, tests, dynamic world height, new commands#7

Merged
huangdihd merged 1 commit into
mainfrom
1.7.0-improvements
Jun 9, 2026
Merged

Release 1.7.0: robustness, tests, dynamic world height, new commands#7
huangdihd merged 1 commit into
mainfrom
1.7.0-improvements

Conversation

@huangdihd

Copy link
Copy Markdown
Owner

1.7.0-RELEASE

Bug 修复

  • World.applyChange 双重 setBlock bug: 事件监听器对 changeTo 的修改之前被无条件覆盖
  • 14 处静默吞异常: 全部替换为明确日志 (warn/error/debug)

健壮性

  • 坐标边界校验: 5 个命令 (goto/getblockat/ispassable/lookat/interactblock) 加入 Y 高度检查
  • 动态世界高度: 从 dimension_type registry 动态获取 min_y/height,不再硬编码 -64..320
  • MovementTask 封装: movement 字段改为 private final

测试体系

  • JUnit 5 + maven-surefire-plugin
  • 14 个单元测试 (DStarLite 寻路、Node 相等性、World 边界)
  • GitHub Actions CI (JDK 17, push + PR)

新功能

  • stop 命令: 一键清空运动队列 + 目标
  • debug 命令: 打印完整运动状态 (位置/速度/当前运动/队列/目标/跟随)

文档

  • README 命令表补充 cansee/stop/debug
  • 版本号 1.6.0 → 1.7.0

🤖 Generated with Claude Code

- Fix World.applyChange double setBlock bug (event changeTo was overwritten)
- Replace 14 silent catch(Exception ignored) with proper logging
- Add Y-bound validation to 5 coordinate commands
- Encapsulate MovementTask.movement field
- Add JUnit 5 + 15 unit tests (DStarLite, Node, World)
- Add GitHub Actions CI
- Dynamic world height from dimension_type registry
- New stop and debug commands
- README adds cansee/stop/debug, version bump to 1.7.0

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@huangdihd
huangdihd merged commit d2ca944 into main Jun 9, 2026
1 check passed
@huangdihd
huangdihd deleted the 1.7.0-improvements branch June 9, 2026 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant