From 1ac504afb9409e4f549ca52f8eda12a175beaf04 Mon Sep 17 00:00:00 2001 From: EnZaXD <60033407+FlorianMichael@users.noreply.github.com> Date: Wed, 17 Apr 2024 08:46:48 +0200 Subject: [PATCH] Use correct constructor in MappedLegacyBlockItem (#721) --- .../viaversion/viabackwards/api/data/MappedLegacyBlockItem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/com/viaversion/viabackwards/api/data/MappedLegacyBlockItem.java b/common/src/main/java/com/viaversion/viabackwards/api/data/MappedLegacyBlockItem.java index a5d352de..88aeaebd 100644 --- a/common/src/main/java/com/viaversion/viabackwards/api/data/MappedLegacyBlockItem.java +++ b/common/src/main/java/com/viaversion/viabackwards/api/data/MappedLegacyBlockItem.java @@ -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() {