SPIGOT-6678: ChunkSnapshot#isSectionEmpty() not working as intended.

This commit is contained in:
DerFrZocker 2021-07-27 18:07:14 +10:00 committed by md_5
parent 3ad0fb1c04
commit 6788550f7e
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -236,7 +236,7 @@ public class CraftChunk implements Chunk {
boolean[] sectionEmpty = new boolean[cs.length];
for (int i = 0; i < cs.length; i++) {
if (cs[i] == null) { // Section is empty?
if (ChunkSection.a(cs[i])) { // Section is empty? // PAIL rename isEmpty
sectionBlockIDs[i] = emptyBlockIDs;
sectionSkyLights[i] = emptyLight;
sectionEmitLights[i] = emptyLight;