From 5b760d5fa08c1ef95789910921708994760cbe7a Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 18 Jul 2024 12:15:36 -0500 Subject: [PATCH] fix culling (again) --- gradle.properties | 2 +- .../visiblebarriers/mixin/client/ClientBarrierBlockMixin.java | 2 +- .../amymialee/visiblebarriers/mixin/client/LightBlockMixin.java | 2 +- src/main/resources/fabric.mod.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gradle.properties b/gradle.properties index f9fe4d3..413b9e7 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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 diff --git a/src/main/java/xyz/amymialee/visiblebarriers/mixin/client/ClientBarrierBlockMixin.java b/src/main/java/xyz/amymialee/visiblebarriers/mixin/client/ClientBarrierBlockMixin.java index 0d9b896..e55b440 100644 --- a/src/main/java/xyz/amymialee/visiblebarriers/mixin/client/ClientBarrierBlockMixin.java +++ b/src/main/java/xyz/amymialee/visiblebarriers/mixin/client/ClientBarrierBlockMixin.java @@ -14,7 +14,7 @@ public abstract class ClientBarrierBlockMixin extends BlockMixin { @Override public void visibleBarriers$isSideInvisible(BlockState state, BlockState stateFrom, Direction direction, CallbackInfoReturnable cir) { if (VisibleBarriers.isVisibilityEnabled() || VisibleBarriers.areBarriersEnabled()) { - cir.setReturnValue(stateFrom.isOpaque() || stateFrom.getBlock() == state.getBlock()); + cir.setReturnValue(stateFrom.isOpaqueFullCube(null, null) || stateFrom.getBlock() == state.getBlock()); } } diff --git a/src/main/java/xyz/amymialee/visiblebarriers/mixin/client/LightBlockMixin.java b/src/main/java/xyz/amymialee/visiblebarriers/mixin/client/LightBlockMixin.java index d51e6e4..bea3b54 100644 --- a/src/main/java/xyz/amymialee/visiblebarriers/mixin/client/LightBlockMixin.java +++ b/src/main/java/xyz/amymialee/visiblebarriers/mixin/client/LightBlockMixin.java @@ -42,7 +42,7 @@ public abstract class LightBlockMixin extends BlockMixin { @Override public void visibleBarriers$isSideInvisible(BlockState state, BlockState stateFrom, Direction direction, CallbackInfoReturnable cir) { if (VisibleBarriers.isVisibilityEnabled() || VisibleBarriers.areLightsEnabled()) { - cir.setReturnValue(stateFrom.isOpaque() || stateFrom.getBlock() == state.getBlock()); + cir.setReturnValue(stateFrom.isOpaqueFullCube(null, null) || stateFrom.getBlock() == state.getBlock()); } } diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 818ed7c..8802471 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -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": [