Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
RedLime committed Jun 10, 2023
1 parent 141abc6 commit 3bf2a33
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ protected long compute(int x, int y, int z) {

float ao;

if (state == null) {
return packAO(1) | packLM(0) | packOP(true) | packFO(true) | (1L << 60);
} else if (state.getLuminance() == 0) {
if (state == null) return packAO(1) | packLM(0) | packOP(true) | packFO(true) | (1L << 60);

if (state.getLuminance() == 0) {
ao = state.getAmbientOcclusionLightLevel(world, pos);
} else {
ao = 1.0f;
Expand Down

0 comments on commit 3bf2a33

Please sign in to comment.