mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2025-01-23 16:01:32 +01:00
Forgot to assign a value
This commit is contained in:
parent
9d8a2a9680
commit
7f7dcffdf0
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user