-
-
Notifications
You must be signed in to change notification settings - Fork 331
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
Added ores generation in quarries #337
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't review the JS but it looks fine. The Rust is fine as well but consider using fill_blocks()
to make it a little simpler
src/data_processing.rs
Outdated
for y in MIN_Y + 1..max_y - 2 { | ||
editor.set_block(STONE, x, y, z, None, None); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use editor.fill_blocks()
instead.
src/element_processing/landuse.rs
Outdated
for y in MIN_Y + 1..ground_level { | ||
editor.set_block(STONE, x, y, z, None, None); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
editor.fill_blocks()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please squash the last commit into the previous one. You can do this with an interactive rebase (git rebase -i HEAD~2
). Do either a squash or a fixup on the last one so that the previous 2 commits get combined
Trying to fix compilation error
I am not sure if I did it right, let's just hope I didn't break anything... |
@benjamin051000 thank you for your advice, this is really better and also ground generation feels faster now. |
In my previous pull I only added landuse for quarries and landfills, so there would be stone in quarries, but I did not add ores as said in #330, now I added ores as well
Fixes #330