From db864b7e51b162671c0274ba4ce6ac3344bce796 Mon Sep 17 00:00:00 2001 From: EOT3000 <43685885+EOT3000@users.noreply.github.com> Date: Wed, 11 Sep 2019 18:54:51 -0400 Subject: [PATCH] try more chunk stuff --- .../main/java/org/geysermc/connector/utils/ChunkUtils.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/connector/src/main/java/org/geysermc/connector/utils/ChunkUtils.java b/connector/src/main/java/org/geysermc/connector/utils/ChunkUtils.java index 9e7ad391..460da043 100644 --- a/connector/src/main/java/org/geysermc/connector/utils/ChunkUtils.java +++ b/connector/src/main/java/org/geysermc/connector/utils/ChunkUtils.java @@ -77,7 +77,11 @@ public class ChunkUtils { BlockState block = storage.get(x, y, z); BedrockItem bedrockBlock = TranslatorsInit.getItemTranslator().getBedrockBlock(block); - section.getBlockStorageArray()[0].setFullBlock(ChunkSection.blockPosition(x, y, z), bedrockBlock.getId() << 4 | bedrockBlock.getData()); + if(bedrockBlock.getId() == 0) { + section.getBlockStorageArray()[1].setFullBlock(ChunkSection.blockPosition(x, y, z), 0 << 4 | 0); + } else { + section.getBlockStorageArray()[1].setFullBlock(ChunkSection.blockPosition(x, y, z), 1 << 4 | 0); + } } } }