From af0d8b70df3ae73f9757b2631f8a14296efcc276 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Tue, 27 Jul 2021 18:07:14 +1000 Subject: [PATCH] SPIGOT-6678: ChunkSnapshot#isSectionEmpty() not working as intended. By: DerFrZocker --- .../src/main/java/org/bukkit/craftbukkit/CraftChunk.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftChunk.java b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftChunk.java index 19a8d2ef95..b3098a4254 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftChunk.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftChunk.java @@ -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;