File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
common/src/main/java/ca/fxco/moreculling/mixin/models Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,8 @@ public abstract class SimpleBakedModel_cacheMixin implements BakedOpacity {
3131 @ Unique
3232 private final DirectionBits moreculling$solidFaces = new DirectionBits ();
3333 @ Unique
34+ private boolean moreculling$allStatesCanOcclude = true ;
35+ @ Unique
3436 private @ Nullable VoxelShape moreculling$cullVoxelShape ;
3537 @ Unique
3638 private boolean moreculling$wasShapeOptimized = false ;
@@ -45,7 +47,11 @@ public abstract class SimpleBakedModel_cacheMixin implements BakedOpacity {
4547 moreculling$solidFaces .clear ();
4648
4749 if (state .canOcclude ()) {
48- moreculling$solidFaces .fill ();
50+ if (moreculling$allStatesCanOcclude ) {
51+ moreculling$solidFaces .fill ();
52+ }
53+ } else {
54+ moreculling$allStatesCanOcclude = false ;
4955 }
5056
5157 for (Map .Entry <Direction , List <BakedQuad >> entry : culledFaces .entrySet ()) {
You can’t perform that action at this time.
0 commit comments