Skip to content

Improve mipper by weighting based on block type and luminance#66

Open
xirreal wants to merge 6 commits intoMCRcortex:masterfrom
xirreal:mipper
Open

Improve mipper by weighting based on block type and luminance#66
xirreal wants to merge 6 commits intoMCRcortex:masterfrom
xirreal:mipper

Conversation

@xirreal
Copy link
Copy Markdown
Collaborator

@xirreal xirreal commented Jul 11, 2024

Also fixes config creation error

@m3t4f1v3
Copy link
Copy Markdown

on src/main/java/me/cortex/voxy/common/world/other/Mipper.java:108

if(blockState.isOf(Blocks.SNOW) && i >= 4 ) { // If snow and a top block, remove lighting from block below

I had to replace this with

if(mapper.getBlockStateFromBlockId(blockId).isOf(Blocks.SNOW) && i >= 4 ) { // If snow and a top block, remove lighting from block below

in order to compile

I may have forgotten to commit half the file
@xirreal
Copy link
Copy Markdown
Collaborator Author

xirreal commented Jul 16, 2024

on src/main/java/me/cortex/voxy/common/world/other/Mipper.java:108

if(blockState.isOf(Blocks.SNOW) && i >= 4 ) { // If snow and a top block, remove lighting from block below

I had to replace this with

if(mapper.getBlockStateFromBlockId(blockId).isOf(Blocks.SNOW) && i >= 4 ) { // If snow and a top block, remove lighting from block below

in order to compile

Oops! Fixed.

@xirreal
Copy link
Copy Markdown
Collaborator Author

xirreal commented Jul 16, 2024

Unrelated to this PR

@m3t4f1v3
Copy link
Copy Markdown

😭 you might've forgotten a semicolon on src/main/java/me/cortex/voxy/common/world/other/Mipper.java:97

xirreal added 2 commits July 20, 2024 17:52
I should probably make commits from an ide instead of the gh web ui
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