Fix lighting remove
This commit is contained in:
parent
8cd6c1512b
commit
ff42446f19
@ -732,9 +732,9 @@ public class BukkitQueue_1_12 extends BukkitQueue_0<net.minecraft.server.v1_12_R
|
||||
@Override
|
||||
public boolean removeSectionLighting(ChunkSection section, int layer, boolean sky) {
|
||||
if (section != null) {
|
||||
section.a(null);
|
||||
Arrays.fill(section.getEmittedLightArray().asBytes(), (byte) 0);
|
||||
if (sky) {
|
||||
section.b(null);
|
||||
Arrays.fill(section.getSkyLightArray().asBytes(), (byte) 0);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
@ -402,7 +402,7 @@ public class NMSRelighter implements Relighter {
|
||||
chunk.smooth = false;
|
||||
|
||||
if (removeFirst && (y & 15) == 15) {
|
||||
queue.removeSectionLighting(sections, y >> 4, true);
|
||||
queue.removeSectionLighting(section, y >> 4, true);
|
||||
}
|
||||
|
||||
for (int j = 0; j <= maxY; j++) {
|
||||
|
Loading…
Reference in New Issue
Block a user