3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-12-25 15:50:10 +01:00

Forgot to assign a value

Dieser Commit ist enthalten in:
KennyTV 2019-01-19 19:59:17 +01:00
Ursprung 9d8a2a9680
Commit 7f7dcffdf0

Datei anzeigen

@ -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() {