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

Added grass-like blocks replacement when an opaque block is on top #98

Merged
merged 3 commits into from
Jan 22, 2023
Merged

Conversation

0-zen
Copy link
Contributor

@0-zen 0-zen commented Jan 21, 2023

Since the blocks are determined in a for() loop, you can't really know if the block on top of the current one will be transparent or not while you're in the loop. So I had to add a second one after which corrects the grassy blocks that had an opaque block on top. There might be a better implementation but I couldn't find one.

@LucasDower
Copy link
Owner

Looks good to me, if the blocks were sorted by height then we could go from top to bottom and would know if the above block is opaque/transparent but this is fine as it is.

@LucasDower
Copy link
Owner

Also, there shouldn't be any changes to block_ids.json as this file is only used when exporting a structure to .schematic as its an old format and uses the old block ids before 1.13 and nylium blocks aren't supported by .schematic files.

@LucasDower LucasDower merged commit 9ebb5f8 into LucasDower:0.7 Jan 22, 2023
@LucasDower
Copy link
Owner

Closes #82.

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.

None yet

2 participants