fix: let players accept a linked co-ownership token with any right-click - #47
Conversation
A player handed a linked Co-Ownership Token could only accept it by right-clicking open air. Clicking the ground did nothing, and clicking the animal or its owner replied "This is not your animal." A non-owner holding a token linked to an owned animal now accepts it on any right-click: air, block, animal or player. Owners keep linking and giving, and no longer get "Already an owner" after linking. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (3)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review. 📝 WalkthroughWalkthroughThe change adds co-ownership token parsing and acceptance checks. The taming listener applies the checks during entity and right-click interactions. Tests cover token parsing and acceptance conditions. ChangesCo-ownership token handling
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to The reviewed token-acceptance paths match the intended behavior. No identified issue blocks merging after normal checks. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The new click routes use the existing co-owner assignment checks. A token holder could already accept a linked token by clicking air; this change makes that action work on blocks and entities too. No newly introduced ownership bypass was established, but token authenticity and interrupted-write behavior remain incompletely verified. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
Hardening Proposals
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
A rabbit checks a token’s trail Comment |
Summary
HusbandryCoOwnToken, so every click path applies the same rule.Documentation impact
Contract
mvn test, or why not):mvn clean verifylocally, 210 tests passed, including the newHusbandryCoOwnTokenTest. Bot e2e on TFMCDev01 follows.ProvinceSystem/wiki/cookingor related pages): no change. The animal husbandry page describes the owner-to-player flow, which still works.Notes
src/main/resources. Do not edittarget/.cookware.ymlis not loaded.🤖 Generated with Claude Code
Summary by CodeRabbit