TeamMidnightDust / MidnightControls

A Minecraft mod adding controller support and enhanced controls overall.
https://midnightdust.eu/midnightcontrols/
MIT License
174 stars 28 forks source link

Virtual Mouse & Mode: Controller used with Quick Play arguments cause Crash. #213

Closed br3n065 closed 9 months ago

br3n065 commented 1 year ago

Describe the bug If Virtual Mouse is enabled and Mode is set to Controller, Minecraft will crash when launched with the new/updated Quick Play arguments (have NOT tested '--quickPlayRealm').

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Options > Controls > MidnightControls(icon) > General Options'.

  2. Enable 'Virtual Mouse'.

  3. Ensure mode will be 'Mode: Controller' on load by either: 3a. Set mode to 'Mode: Controller'. Disable 'Auto Switch Mode'.

    3b. Set mode to 'Mode: Keyboard/Mouse' or 'Mode: Controller' Enable 'Auto Switch Mode'. Turn on / Connect controller.

  4. Close Minecraft.

  5. Relaunch Minecraft with one of the following quick play arguments '--quickPlaySingleplayer WorldName' or '--quickPlayMultiplayer localhost:25565' or '--quickPlayRealm 1234' (you will most likely need to replace the passed parameter).

  6. Minecraft will crash less then second after the window appears.

Expected behavior Minecraft should load like normal.

Desktop (please complete the following information):

Additional context If you connect the controller during the early stage of loading, eg. before majority of the loading bar on the splash screen is full, Minecraft will still crash.

Crash Report

br3n065 commented 9 months ago

Midnight Controls 1.9.0, for Minecraft 1.20.2, has fixed this issue. Tested '--quickPlaySingleplayer' and '--quickPlayMultiplayer' only.