Skip to content

Add settings for user#76

Merged
JakeRoggenbuck merged 5 commits into
jabacat:mainfrom
JakeRoggenbuck:add-settings
Jun 12, 2026
Merged

Add settings for user#76
JakeRoggenbuck merged 5 commits into
jabacat:mainfrom
JakeRoggenbuck:add-settings

Conversation

@JakeRoggenbuck

Copy link
Copy Markdown
Member

No description provided.

@JakeRoggenbuck

Copy link
Copy Markdown
Member Author

We can later add UI so the user can edit their render distance and all future settings

@JakeRoggenbuck JakeRoggenbuck requested review from Sophon96 and mileskerr and removed request for mileskerr June 1, 2026 20:39
@JakeRoggenbuck

Copy link
Copy Markdown
Member Author

Oh i forgot it doesn't let you click two people for a review, but i would love a review from both of you!

@JakeRoggenbuck JakeRoggenbuck removed the request for review from Sophon96 June 1, 2026 20:40
@mileskerr

Copy link
Copy Markdown
Contributor

great to have this early i think so we dont have to replace a ton of constants later! only nitpick is that render distance should probably be unsigned?

@JakeRoggenbuck

JakeRoggenbuck commented Jun 1, 2026

Copy link
Copy Markdown
Member Author

Good call! I was thinking that too. I'd have to do a type cast each time the render future chunk is called, but that should be fast enough. Thanks!

@JakeRoggenbuck JakeRoggenbuck requested a review from mileskerr June 2, 2026 00:12
Comment thread src/world/generation.rs Outdated

pub fn generate_surrounding_chunks(&mut self, px: i64, py: i64, pz: i64, radius: i64) {
pub fn generate_surrounding_chunks(&mut self, px: i64, py: i64, pz: i64, radius: u32) {
let render_distance = radius as i64;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if im misreading the formatting, but shouldn't this line be indented once more?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh yes it def should be loll good catch!

Sophon96
Sophon96 previously approved these changes Jun 2, 2026
@JakeRoggenbuck

Copy link
Copy Markdown
Member Author

Silly tabs and spaces on my new vim install on my new mac lol

Sophon96
Sophon96 previously approved these changes Jun 2, 2026

@Sophon96 Sophon96 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@adamhutchings adamhutchings left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! In the future we can hook this up to UI

@JakeRoggenbuck

Copy link
Copy Markdown
Member Author

Yes!

@JakeRoggenbuck JakeRoggenbuck merged commit 7a0cfb2 into jabacat:main Jun 12, 2026
4 checks passed
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.

4 participants