Skip to content

Cleanup pumpkin-config#303

Merged
Snowiiii merged 2 commits intoPumpkin-MC:masterfrom
Commandcracker:cleanup-pumpkin-config
Nov 19, 2024
Merged

Cleanup pumpkin-config#303
Snowiiii merged 2 commits intoPumpkin-MC:masterfrom
Commandcracker:cleanup-pumpkin-config

Conversation

@Commandcracker
Copy link
Copy Markdown
Contributor

@Commandcracker Commandcracker commented Nov 17, 2024

Description

Most changes are because serde_inline_default is no longer needed, see here

Testing

ran diff on booth configs to see if anything changed.

Checklist

Things need to be done before this Pull Request can be merged.

  • Code is well-formatted and adheres to project style guidelines: cargo fmt
  • Code does not produce any clippy warnings cargo clippy

@Snowiiii
Copy link
Copy Markdown
Member

The only reason we use serde_inline_default is to have default values for config fields we can't parse. I tested your changes and removed a random config value. It gave me an error Couldn't parse config at "configuration.toml". Reason: missing field hardcore. This is is proberbly caused by an Config update, Just delete the old Config and start Pumpkin again

@Commandcracker Commandcracker marked this pull request as draft November 17, 2024 20:09
@Commandcracker Commandcracker marked this pull request as ready for review November 18, 2024 20:40
@Commandcracker
Copy link
Copy Markdown
Contributor Author

The only reason we use serde_inline_default is to have default values for config fields we can't parse. I tested your changes and removed a random config value. It gave me an error Couldn't parse config at "configuration.toml". Reason: missing field hardcore. This is is proberbly caused by an Config update, Just delete the old Config and start Pumpkin again

Now it should work

@Snowiiii
Copy link
Copy Markdown
Member

Just tested again. Works fine now and looks much better.
Thanks @Commandcracker :D

@Snowiiii Snowiiii merged commit 5cd460f into Pumpkin-MC:master Nov 19, 2024
@Commandcracker Commandcracker deleted the cleanup-pumpkin-config branch July 6, 2025 22:53
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.

2 participants