Freecam icon indicating copy to clipboard operation
Freecam copied to clipboard

Incompatibility with "Hot Swap [Fabric]" by "thepeebrain"

Open GoldenFurredFox opened this issue 2 years ago • 1 comments

Description of the issue

When I turn on the freecam mode, the functionality of "Hot Swap [Fabric]" version by "thepeebrain" gets completely disabled, and the only way to fix it is to leave and rejoin the world you're in.

Expected behavior

I expected the functionality of the other mod to continue working.

Steps to reproduce

  1. Join a multiplayer server (I have yet to replicate this in single player)
  2. Enable Freecam by pressing F4
  3. The functionality of the other mod is disabled until you leave and rejoin the server

Log output

View them here.

Crash report

Not applicable.

How prevalent is the issue?

Every time I activate freecam mode after rejoining the world.

Freecam version

1.2.1+1.20

Are you using "Modrinth Edition"?

No

Minecraft version

1.20.1

Modding platform

  • [X] Fabric
  • [ ] Neoforge
  • [ ] Forge

GoldenFurredFox avatar Mar 04 '24 05:03 GoldenFurredFox

Before looking into this properly, my first instinct is that this is probably an issue with Hot Swap rather than Freecam. Thanks for reporting the issue there too.

Looking through their code, this bit where they cache the current player is very suspicious.

I suspect when Freecam "spawns", their cached player becomes the camera (bug), and when Freecam "despawns" their cached player becomes null (bigger bug).

MattSturgeon avatar Mar 04 '24 12:03 MattSturgeon