Skip to content

Commit 1ac504a

Browse files
Use correct constructor in MappedLegacyBlockItem (#721)
1 parent 09eda34 commit 1ac504a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/src/main/java/com/viaversion/viabackwards/api/data/MappedLegacyBlockItem.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public MappedLegacyBlockItem(int id, short data, @Nullable String name, boolean
3333
this.id = id;
3434
this.data = data;
3535
this.name = name != null ? "§f" + name : null;
36-
this.block = block ? new IdAndData(id, data) : null;
36+
this.block = block ? data != -1 ? new IdAndData(id, data) : new IdAndData(id) : null;
3737
}
3838

3939
public int getId() {

0 commit comments

Comments
 (0)