Skip to content

Commit

Permalink
Fix manual culling
Browse files Browse the repository at this point in the history
- Clear cull result flags on cull cache prepare
- Bump version to 1.0.2
  • Loading branch information
PepperCode1 committed Oct 22, 2021
1 parent ba2c93f commit af05590
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ org.gradle.jvmargs = -Xmx1G
loader_version = 0.11.7

# Mod Properties
mod_version = 1.0.1
mod_version = 1.0.2
mod_minecraft_version = 1.17
maven_group = me.pepperbell
archives_base_name = continuity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,18 +185,19 @@ public boolean shouldCull(BlockRenderView blockView, BlockPos pos, BlockState st
if ((completionFlags & mask) == 0) {
completionFlags |= mask;
if (Block.shouldDrawSide(state, blockView, pos, cullFace, mutablePos.set(pos, cullFace))) {
resultFlags |= mask;
return false;
} else {
resultFlags |= mask;
return true;
}
} else {
return (resultFlags & mask) == 1;
return (resultFlags & mask) == 0;
}
}

public void prepare() {
completionFlags = 0;
resultFlags = 0;
}
}

Expand Down

0 comments on commit af05590

Please sign in to comment.