Forge's correct AO

This commit is contained in:
Bogdan committed 2023-09-04 11:23:43 +03:00
1 parent a699103aa4
commit ea96c835cb
1 file changed
+1 -1
@@ -160,7 +160,7 @@ public class BlockRenderer {
}
private LightMode getLightingMode(BlockState state, BakedModel model, BlockRenderView world, BlockPos pos) {
if (this.useAmbientOcclusion && model.useAmbientOcclusion() && state.getLightEmission(world, pos) == 0) {
if (this.useAmbientOcclusion && model.useAmbientOcclusion(state) && state.getLightEmission(world, pos) == 0) {
return LightMode.SMOOTH;
} else {
return LightMode.FLAT;