SPIGOT-6678: ChunkSnapshot#isSectionEmpty() not working as intended.
This commit is contained in:
parent
3ad0fb1c04
commit
6788550f7e
@ -236,7 +236,7 @@ public class CraftChunk implements Chunk {
|
|||||||
boolean[] sectionEmpty = new boolean[cs.length];
|
boolean[] sectionEmpty = new boolean[cs.length];
|
||||||
|
|
||||||
for (int i = 0; i < cs.length; i++) {
|
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;
|
sectionBlockIDs[i] = emptyBlockIDs;
|
||||||
sectionSkyLights[i] = emptyLight;
|
sectionSkyLights[i] = emptyLight;
|
||||||
sectionEmitLights[i] = emptyLight;
|
sectionEmitLights[i] = emptyLight;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user