From e42f86eb2d51fc59750d0328165c70e929c2b4fb Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Tue, 1 Jun 2021 20:10:47 +1000 Subject: [PATCH] Remove usage of Java 11 method not caught by animal sniffer By: md_5 --- .../nms-patches/net/minecraft/world/InventorySubcontainer.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/nms-patches/net/minecraft/world/InventorySubcontainer.patch b/paper-server/nms-patches/net/minecraft/world/InventorySubcontainer.patch index 4e92b65275..738adf3ccb 100644 --- a/paper-server/nms-patches/net/minecraft/world/InventorySubcontainer.patch +++ b/paper-server/nms-patches/net/minecraft/world/InventorySubcontainer.patch @@ -57,7 +57,7 @@ + + public InventorySubcontainer(InventorySubcontainer original) { + this.a = original.a; -+ this.items = NonNullList.a(ItemStack.b, original.items.toArray(ItemStack[]::new)); ++ this.items = NonNullList.a(ItemStack.b, original.items.toArray(new ItemStack[0])); + } + public InventorySubcontainer(int i) {