only relight blocks that have light

This commit is contained in:
dordsor21 2021-01-13 17:10:08 +00:00
parent b1e8c6c3ba
commit b066ca8349
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -1000,7 +1000,7 @@ public class NMSRelighter implements Relighter {
BlockMaterial material = state.getMaterial();
int opacity = material.getLightOpacity();
int brightness = material.getLightValue();
if (brightness != iChunk.getEmmittedLight(x, y, z)) {
if (brightness > 0 && brightness != iChunk.getEmmittedLight(x, y, z)) {
addLightUpdate(bx + x, y, bz + z);
}