Use correct constructor in MappedLegacyBlockItem (#721)

This commit is contained in:
EnZaXD 2024-04-17 08:46:48 +02:00 committed by GitHub
parent 09eda34051
commit 1ac504afb9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -33,7 +33,7 @@ public class MappedLegacyBlockItem {
this.id = id;
this.data = data;
this.name = name != null ? "§f" + name : null;
this.block = block ? new IdAndData(id, data) : null;
this.block = block ? data != -1 ? new IdAndData(id, data) : new IdAndData(id) : null;
}
public int getId() {