Skip to content

Commit af05590

Browse files
committed
Fix manual culling
- Clear cull result flags on cull cache prepare - Bump version to 1.0.2
1 parent ba2c93f commit af05590

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ org.gradle.jvmargs = -Xmx1G
88
loader_version = 0.11.7
99

1010
# Mod Properties
11-
mod_version = 1.0.1
11+
mod_version = 1.0.2
1212
mod_minecraft_version = 1.17
1313
maven_group = me.pepperbell
1414
archives_base_name = continuity

src/main/java/me/pepperbell/continuity/client/model/CTMBakedModel.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,18 +185,19 @@ public boolean shouldCull(BlockRenderView blockView, BlockPos pos, BlockState st
185185
if ((completionFlags & mask) == 0) {
186186
completionFlags |= mask;
187187
if (Block.shouldDrawSide(state, blockView, pos, cullFace, mutablePos.set(pos, cullFace))) {
188+
resultFlags |= mask;
188189
return false;
189190
} else {
190-
resultFlags |= mask;
191191
return true;
192192
}
193193
} else {
194-
return (resultFlags & mask) == 1;
194+
return (resultFlags & mask) == 0;
195195
}
196196
}
197197

198198
public void prepare() {
199199
completionFlags = 0;
200+
resultFlags = 0;
200201
}
201202
}
202203

0 commit comments

Comments
 (0)