fix: 修复导航边界与路径平滑正确性#717
Open
zhibeigg wants to merge 1 commit into
Open
Conversation
11 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
原有问题
导航模块沿用了不完整的世界高度、水体和直线路径判定:
典型触发场景与后果
本 PR 修改
修改目的
确保寻路结果与真实世界边界和实体体积一致,平滑过程只能删除真正可安全直达的节点,避免路径穿墙、越界或进入危险地形。
兼容性与行为变化
验证
./gradlew :module:bukkit:bukkit-navigation:test --rerun-tasks --no-parallel./gradlew :module:bukkit:bukkit-navigation:build --rerun-tasks --no-parallelgit diff --check(仅 Windows LF→CRLF 提示)Refs #703