Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If a config file does not contain a list, Minecraft crashes upon an attempt to modify the list #46

Open
KonSola5 opened this issue Dec 1, 2023 · 1 comment
Labels
bug Something isn't working crash Something REALLY isn't working

Comments

@KonSola5
Copy link

KonSola5 commented Dec 1, 2023

Using MidnightLib 1.4.1-fabric.

To reproduce:

  1. Make a config with a string list.

  2. Launch the game and open the config screen.

  3. Try to insert something into the textbox.

  4. Crash due to UnsupportedOperationException.

  5. Launch Minecraft, but this time open the config screen and close it (so that the config file generates).

  6. Try to insert something into the textbox.

  7. Succeed.

Log: 2023-12-01-7.log

@KonSola5
Copy link
Author

KonSola5 commented Dec 1, 2023

Current workaround: Add MidnightConfig.write("modid"); below the MidnightConfig.init("modid", ConfigFile.class) so that the config file is present and filled.

@Motschen Motschen added the bug Something isn't working label Apr 4, 2024
@Motschen Motschen pinned this issue Apr 4, 2024
@Motschen Motschen added the crash Something REALLY isn't working label Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working crash Something REALLY isn't working
Projects
Status: Backlog
Development

No branches or pull requests

2 participants