Small bugfix in lighting logic.
This commit is contained in:
parent
bbc107de96
commit
9888214524
1 changed files with 1 additions and 1 deletions
|
@ -163,7 +163,7 @@ public class BlockInfo
|
|||
skyLight[1][x][y][z] = combine(s[1][y1][1], s[x1][y1][1], s[1][y1][z1], ty ? s[x1][y1][z1] : s[1][y1][1]);
|
||||
blockLight[1][x][y][z] = combine(b[1][y1][1], b[x1][y1][1], b[1][y1][z1], ty ? b[x1][y1][z1] : b[1][y1][1]);
|
||||
|
||||
boolean tz = translucent[1][y1][z1] || translucent[1][y1][z1];
|
||||
boolean tz = translucent[1][y1][z1] || translucent[x1][1][z1];
|
||||
skyLight[2][x][y][z] = combine(s[1][1][z1], s[1][y1][z1], s[x1][1][z1], tz ? s[x1][y1][z1] : s[1][1][z1]);
|
||||
blockLight[2][x][y][z] = combine(b[1][1][z1], b[1][y1][z1], b[x1][1][z1], tz ? b[x1][y1][z1] : b[1][1][z1]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue