From c098e24c4f6649e3977764f8cb5dd97dba237500 Mon Sep 17 00:00:00 2001 From: RK_01 <50594595+RaphiMC@users.noreply.github.com> Date: Mon, 17 Jun 2024 20:08:34 +0200 Subject: [PATCH] Return generic Item array in StructuredItem#emptyArray (#3955) --- .../viaversion/api/minecraft/item/StructuredItem.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/main/java/com/viaversion/viaversion/api/minecraft/item/StructuredItem.java b/api/src/main/java/com/viaversion/viaversion/api/minecraft/item/StructuredItem.java index 0c199f883..ab460867d 100644 --- a/api/src/main/java/com/viaversion/viaversion/api/minecraft/item/StructuredItem.java +++ b/api/src/main/java/com/viaversion/viaversion/api/minecraft/item/StructuredItem.java @@ -46,8 +46,8 @@ public class StructuredItem implements Item { return new StructuredItem(0, 0); } - public static StructuredItem[] emptyArray(final int size) { - final StructuredItem[] items = new StructuredItem[size]; + public static Item[] emptyArray(final int size) { + final Item[] items = new Item[size]; for (int i = 0; i < items.length; i++) { items[i] = empty(); }