diff --git a/src/main/java/com/songoda/skyblock/utils/world/block/BlockData.java b/src/main/java/com/songoda/skyblock/utils/world/block/BlockData.java index fdbfdb2e..810bda98 100644 --- a/src/main/java/com/songoda/skyblock/utils/world/block/BlockData.java +++ b/src/main/java/com/songoda/skyblock/utils/world/block/BlockData.java @@ -54,8 +54,9 @@ public class BlockData { private boolean exactTeleport = true; - public BlockData(String material, int x, int y, int z, String biome) { + public BlockData(String material, byte data, int x, int y, int z, String biome) { this.material = material; + this.data = data; this.x = x; this.y = y; this.z = z; diff --git a/src/main/java/com/songoda/skyblock/utils/world/block/BlockUtil.java b/src/main/java/com/songoda/skyblock/utils/world/block/BlockUtil.java index 4513595f..3e141c00 100644 --- a/src/main/java/com/songoda/skyblock/utils/world/block/BlockUtil.java +++ b/src/main/java/com/songoda/skyblock/utils/world/block/BlockUtil.java @@ -1,6 +1,7 @@ package com.songoda.skyblock.utils.world.block; import com.songoda.core.compatibility.CompatibleMaterial; +import com.songoda.core.compatibility.ServerVersion; import com.songoda.core.utils.BlockUtils; import com.songoda.skyblock.utils.item.ItemStackUtil; import com.songoda.skyblock.utils.version.NMSUtil; @@ -22,7 +23,7 @@ import java.util.List; public final class BlockUtil extends BlockUtils { public static BlockData convertBlockToBlockData(Block block, int x, int y, int z) { - BlockData blockData = new BlockData(block.getType().name(), x, y, z, block.getBiome().toString()); + BlockData blockData = new BlockData(block.getType().name(), block.getData(), x, y, z, block.getBiome().toString()); int NMSVersion = NMSUtil.getVersionNumber(); blockData.setVersion(NMSVersion);