From 7f7dcffdf08d9abbbf48388b623fb2ad05cbdee0 Mon Sep 17 00:00:00 2001 From: KennyTV <28825609+KennyTV@users.noreply.github.com> Date: Sat, 19 Jan 2019 19:59:17 +0100 Subject: [PATCH] Forgot to assign a value --- .../blockconnections/WrappedBlockData.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_13to1_12_2/blockconnections/WrappedBlockData.java b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_13to1_12_2/blockconnections/WrappedBlockData.java index 3fe5074c0..f69737a61 100644 --- a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_13to1_12_2/blockconnections/WrappedBlockData.java +++ b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_13to1_12_2/blockconnections/WrappedBlockData.java @@ -16,7 +16,7 @@ public class WrappedBlockData { public static WrappedBlockData fromString(String s) { String[] array = s.split("\\["); String key = array[0]; - WrappedBlockData wrappedBlockdata = new WrappedBlockData(key); + WrappedBlockData wrappedBlockdata = new WrappedBlockData(key, ConnectionData.getId(s)); if (array.length > 1) { String blockData = array[1]; blockData = blockData.replace("]", ""); @@ -38,8 +38,9 @@ public class WrappedBlockData { return fromString("minecraft:air"); } - private WrappedBlockData(String minecraftKey) { + private WrappedBlockData(String minecraftKey, int savedBlockStateId) { this.minecraftKey = minecraftKey; + this.savedBlockStateId = savedBlockStateId; } public String toString() {