mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-27 22:04:04 +00:00
only relight blocks that have light
This commit is contained in:
@@ -1000,7 +1000,7 @@ public class NMSRelighter implements Relighter {
|
|||||||
BlockMaterial material = state.getMaterial();
|
BlockMaterial material = state.getMaterial();
|
||||||
int opacity = material.getLightOpacity();
|
int opacity = material.getLightOpacity();
|
||||||
int brightness = material.getLightValue();
|
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);
|
addLightUpdate(bx + x, y, bz + z);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user