Fix lighting remove

This commit is contained in:
Jesse Boyd 2018-01-16 12:19:43 +11:00
parent 8cd6c1512b
commit ff42446f19
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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++) {