Skip to content

Fix nearest attackable target reasons on 26.2 - #21

Merged
slyphmp4 merged 6 commits into
ver/26.2from
fix/nearest-attackable-target-reason-26.2
Aug 25, 2026
Merged

Fix nearest attackable target reasons on 26.2#21
slyphmp4 merged 6 commits into
ver/26.2from
fix/nearest-attackable-target-reason-26.2

Conversation

@slyphmp4

Copy link
Copy Markdown
Owner

Adds CraftBukkit/Paper-compatible target reasons for NearestAttackableTargetGoal.start() on Minecraft 26.2.

  • Redirects the vanilla Mob#setTarget call from NearestAttackableTargetGoal.start() through Cardboard's Bukkit target bridge.
  • Uses CLOSEST_PLAYER when the selected target is a ServerPlayer.
  • Uses CLOSEST_ENTITY for other living targets.
  • Registers the new mixin in bukkitfabric.mixins.json.

This addresses the remaining Unknown target reason warning observed when wolves acquire a target through NearestAttackableTargetGoal.

@slyphmp4
slyphmp4 merged commit 82e648e into ver/26.2 Aug 25, 2026
3 checks passed
@slyphmp4
slyphmp4 deleted the fix/nearest-attackable-target-reason-26.2 branch August 25, 2026 04:20
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