diff --git a/src/main/java/net/minestom/server/instance/palette/Section.java b/src/main/java/net/minestom/server/instance/palette/Section.java index 5d03f0830..2ef8d5a0c 100644 --- a/src/main/java/net/minestom/server/instance/palette/Section.java +++ b/src/main/java/net/minestom/server/instance/palette/Section.java @@ -77,7 +77,8 @@ public class Section implements PublicCloneable
{ } // Check if the new block is air, used for counting none air blocks. - final boolean isAir = Block.fromStateId(blockId).isAir(); + // FIXME: once block data is working + final boolean isAir = blockId == 0;//Block.fromStateId(blockId).isAir(); // Change to palette value blockId = getPaletteIndex(blockId); @@ -93,8 +94,10 @@ public class Section implements PublicCloneable
{ final long clear = MAGIC_MASKS[bitsPerEntry]; final long value = block >> bitIndex & clear; - final boolean isCurrentAir = Block.fromStateId( - hasPalette ? paletteBlockMap.get((short) value) : (short) value).isAir(); + + // FIXME: once block data is working + final boolean isCurrentAir = (hasPalette ? paletteBlockMap.get((short) value) : (short) value) == 0; + //Block.fromStateId(hasPalette ? paletteBlockMap.get((short) value) : (short) value).isAir(); block |= clear << bitIndex; block ^= clear << bitIndex;