mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-11-18 01:46:11 +00:00
only relight blocks that have light
This commit is contained in:
parent
b1e8c6c3ba
commit
b066ca8349
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user