Skip to content

Commit

Permalink
Merge pull request #66 from BuggyAl/main
Browse files Browse the repository at this point in the history
fix culling (again)
  • Loading branch information
AmyMialee authored Sep 1, 2024
2 parents 6320ffe + 5b760d5 commit 8915959
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ yarn_mappings=1.21+build.9
loader_version=0.15.11

# Mod Properties
mod_version=2.0.15
mod_version=2.0.15.1
maven_group=amymialee
archives_base_name=visiblebarriers

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public abstract class ClientBarrierBlockMixin extends BlockMixin {
@Override
public void visibleBarriers$isSideInvisible(BlockState state, BlockState stateFrom, Direction direction, CallbackInfoReturnable<Boolean> cir) {
if (VisibleBarriers.isVisibilityEnabled() || VisibleBarriers.areBarriersEnabled()) {
cir.setReturnValue(stateFrom.isOpaque() || stateFrom.getBlock() == state.getBlock());
cir.setReturnValue(stateFrom.isOpaqueFullCube(null, null) || stateFrom.getBlock() == state.getBlock());
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public abstract class LightBlockMixin extends BlockMixin {
@Override
public void visibleBarriers$isSideInvisible(BlockState state, BlockState stateFrom, Direction direction, CallbackInfoReturnable<Boolean> cir) {
if (VisibleBarriers.isVisibilityEnabled() || VisibleBarriers.areLightsEnabled()) {
cir.setReturnValue(stateFrom.isOpaque() || stateFrom.getBlock() == state.getBlock());
cir.setReturnValue(stateFrom.isOpaqueFullCube(null, null) || stateFrom.getBlock() == state.getBlock());
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"schemaVersion": 1,
"id": "visiblebarriers",
"version": "${version}",
"accessWidener" : "visiblebarriers.accesswidener",
"accessWidener": "visiblebarriers.accesswidener",
"name": "Visible Barriers",
"description": "Various tools for Minecraft Mapmaking.",
"authors": [
Expand Down

0 comments on commit 8915959

Please sign in to comment.