Fix various lighting issues

fixes #496
possibly fixes #497
This commit is contained in:
dordsor21
2020-06-30 13:44:26 +01:00
parent 3d40336045
commit f84958957c
4 changed files with 115 additions and 20 deletions

View File

@ -181,6 +181,18 @@ public class CharSetBlocks extends CharBlocks implements IChunkSet {
}
@Override public void setFullBright(int layer) {
if (light == null) {
light = new char[16][];
}
if (light[layer] == null) {
light[layer] = new char[4096];
}
if (skyLight == null) {
skyLight = new char[16][];
}
if (skyLight[layer] == null) {
skyLight[layer] = new char[4096];
}
Arrays.fill(light[layer], (char) 15);
Arrays.fill(skyLight[layer], (char) 15);
}