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 2fbb8a3d..42dc630d 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 @@ -71,7 +71,7 @@ public class MappedLegacyBlockItem { @FunctionalInterface public interface BlockEntityHandler { - CompoundTag handleOrNewCompoundTag(int block, CompoundTag tag); + void handleCompoundTag(int block, CompoundTag tag); } public enum Type { diff --git a/common/src/main/java/com/viaversion/viabackwards/api/rewriters/LegacyBlockItemRewriter.java b/common/src/main/java/com/viaversion/viabackwards/api/rewriters/LegacyBlockItemRewriter.java index 49dc5d20..32a8d08f 100644 --- a/common/src/main/java/com/viaversion/viabackwards/api/rewriters/LegacyBlockItemRewriter.java +++ b/common/src/main/java/com/viaversion/viabackwards/api/rewriters/LegacyBlockItemRewriter.java @@ -51,7 +51,6 @@ import com.viaversion.nbt.tag.Tag; import com.viaversion.viaversion.util.ComponentUtil; import java.util.HashMap; import java.util.Map; -import java.util.Optional; import com.viaversion.viaversion.util.IdAndData; import org.checkerframework.checker.nullness.qual.Nullable; @@ -289,7 +288,7 @@ public abstract class LegacyBlockItemRewriter new MappedLegacyBlockItem(52)); - data.setBlockEntityHandler((b, tag) -> { - EntityMappings1_11.toClientSpawner(tag, true); - return tag; - }); + data.setBlockEntityHandler((b, tag) -> EntityMappings1_11.toClientSpawner(tag, true)); enchantmentRewriter = new LegacyEnchantmentRewriter(nbtTagName()); enchantmentRewriter.registerEnchantment(71, "§cCurse of Vanishing");