From ce65c7f583b61c9685a0343e28b9739dd0df30e8 Mon Sep 17 00:00:00 2001 From: Gerrygames Date: Fri, 26 Oct 2018 17:09:26 +0200 Subject: [PATCH] fix merge issues --- .../api/minecraft/chunks/ChunkSection.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/common/src/main/java/us/myles/ViaVersion/api/minecraft/chunks/ChunkSection.java b/common/src/main/java/us/myles/ViaVersion/api/minecraft/chunks/ChunkSection.java index 133c3f831..b3341b92e 100644 --- a/common/src/main/java/us/myles/ViaVersion/api/minecraft/chunks/ChunkSection.java +++ b/common/src/main/java/us/myles/ViaVersion/api/minecraft/chunks/ChunkSection.java @@ -2,6 +2,8 @@ package us.myles.ViaVersion.api.minecraft.chunks; import com.google.common.collect.Lists; import io.netty.buffer.ByteBuf; +import lombok.Getter; +import lombok.Setter; import java.util.List; @@ -14,10 +16,14 @@ public class ChunkSection { * Length of the sky and block light nibble arrays. */ public static final int LIGHT_LENGTH = 16 * 16 * 16 / 2; // size * size * size / 2 (nibble bit count) - private final List palette = Lists.newArrayList(); + @Getter + private final List palette = Lists.newArrayList(); private final int[] blocks; private NibbleArray blockLight; private NibbleArray skyLight; + @Getter + @Setter + private int nonAirBlocksCount; public ChunkSection() { this.blocks = new int[SIZE]; @@ -160,10 +166,6 @@ public class ChunkSection { output.writeBytes(skyLight.getHandle()); } - public List getPalette() { - return palette; - } - /** * Check if sky light is present *