Repository navigation
Use ModifyExpressionValue for the fishing line camera check - #667
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
WalkthroughThe fishing bobber renderer mixin replaces its camera-type redirect with a ChangesFishing Bobber Renderer Hook
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~8 minutes Change: Bug fix · Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to
|
|
|
Haven't heard of that crash before, but the PR looks fine and seems to work, so sure. |



Fixes #666
Replaces the
@RedirectonOptions#getCameraTypeinFishingBobberRendererMixinwith MixinExtras'@ModifyExpressionValueon > 1.20.4. Behavior is the same.ModifyExpressionValue#atis an array by design, so the built jar no longer trips MixinExtras' redirect wrapper (see the issue). It also chains with other mods touching the same call instead of conflicting.<= 1.20.4 keeps its
@Redirects, since older Fabric Loader versions don't bundle MixinExtras. Those are encoded the same way, so the build-side quirk may be worth a look in ProcessedModTemplate..\gradlew clean buildpasses for all versions. The built 1.21.1 and 26.3 Fabric jars no longer contain a@Redirect.Investigated with the help of an AI assistant; I reviewed the change and the diagnosis myself.