fix: keep other plugins' slot display for food on their furniture - #59
Conversation
PlateManager.addItem had a stray semicolon after its furniture check, so every food item placed on any InteractibleFurniture slot got the cooking display pose (flat, full size). Salt on magic pedestals showed oversized. Only apply cooking display data to Cooking-owned furniture. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
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; 9 remain after this review. 📝 WalkthroughWalkthroughThe change adds a cooking-furniture check and uses it to restrict item additions in ChangesCooking Furniture Handling
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~8 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to The change keeps food on other plugins' furniture using that furniture's own slot display, while Cooking furniture is handled as before. No merge-blocking risk was identified. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The change limits display overrides to Cooking-namespaced furniture rather than expanding access or privileges. No newly introduced security concern was established. Some uncertainty remains because furniture identity and slot-addition recovery are controlled by an external dependency. Retained concerns Security review detailsSecurity Blast Radius
Security Findings and Attack Paths
Trust Boundaries and Controls
🚥 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 the plate with care Comment |
Problem
Salt (and any other cooking food) placed on a magic
pedestalorartifact_displayshows flat and full size instead of the pedestal's tilted 0.6-scale pose.PlateManager.addItemhad a stray semicolon after its check:So the check did nothing, and the cooking display data from
models.ymlreplaced the slot display on every InteractibleFurniture piece.Fix
PlateManager.addItemreturns early unless the furniture is Cooking-owned.FurnitureCache.isCookingFurnituretreats furniture whose item path starts withia.tfmc_cooking:as Cooking-owned.Testing
mvn clean verify: 274 tests, 0 failures.CookingFurnitureTestchecks that a plate counts as Cooking furniture, a pedestal doesn't, and furniture with no type doesn't.Items already placed keep their old pose until they're taken off and placed again.
🤖 Generated with Claude Code
Summary by CodeRabbit