Skip to content

fix: perspective mod compatibility and improve mixin compatibility#8487

Closed
Lopesnextgen wants to merge 1 commit into
CCBlueX:nextgenfrom
Lopesnextgen:fix/perspective-mod-compatibility
Closed

fix: perspective mod compatibility and improve mixin compatibility#8487
Lopesnextgen wants to merge 1 commit into
CCBlueX:nextgenfrom
Lopesnextgen:fix/perspective-mod-compatibility

Conversation

@Lopesnextgen

Copy link
Copy Markdown
Contributor

Right now LiquidBounce forces the player's body to rotate when moving the mouse in 3rd person (F5). This breaks mods like Lunar's Perspective/Freelook because the character keeps turning while you're just trying to look around.

I've added a check so mouse input only affects the player's body in first-person. This doesn't break any internal features or modules, and it works perfectly with both Lunar's freelook and Liquid's own modules.

I also updated the Mixin in MixinMouseHandler to use @WrapOperation to ensure better compatibility with other mods. Simple fix, but makes the client much more compatible with modern modpacks...

@MukjepScarlet

Copy link
Copy Markdown
Contributor

LB has FreeLook too.

All mixin-related stuffs pending for 26.2 update

@Lopesnextgen

Copy link
Copy Markdown
Contributor Author

Yeah, I know LB has FreeLook.

This PR is more about mod compatibility than adding a FreeLook feature. External perspective mods like Lunar's currently break because LB still applies CHANGE_LOOK rotation in third person.

If mixin changes are on hold until 26.2, I can remove that part and keep only the first-person guard in RotationManager

@MukjepScarlet MukjepScarlet requested a review from 1zun4 June 12, 2026 06:34
@MukjepScarlet

Copy link
Copy Markdown
Contributor

I will convert all Redirect in 26.2 update if possible.

@MukjepScarlet

Copy link
Copy Markdown
Contributor

You can keep your branch and wait for update, then resolve conflicts

@Lopesnextgen

Copy link
Copy Markdown
Contributor Author

Alright!

I'll keep the PR open and update/rebase the branch after 26.2 lands, then resolve any conflicts.

@localpthebest

Copy link
Copy Markdown
Contributor

Lunar's currently break
that would be because lunar goes out of their way to break compatability with every 3rd party mod possible

@MukjepScarlet

MukjepScarlet commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

I trust this repo will become 26.2 earlier than Lunar. So if you want to play on it please test and send the result to support email/bot, or open an issue here

@MukjepScarlet

Copy link
Copy Markdown
Contributor

Update the branch

@Lopesnextgen Lopesnextgen deleted the fix/perspective-mod-compatibility branch June 24, 2026 16:16
@Lopesnextgen Lopesnextgen restored the fix/perspective-mod-compatibility branch June 24, 2026 16:18
Lopesnextgen added a commit to Lopesnextgen/LiquidBounce that referenced this pull request Jun 25, 2026
Per review feedback on CCBlueX#8487, the @WrapOperation variant was overkill for a
plain cancel-or-run check. Reverting to @WrapWithCondition and returning
!event.isCancelled() is the same behavior with one less indirection.
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.

3 participants