From 90a4d64a9a73ab46cf7a87ddd86bf5795154dad9 Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 1 Jun 2021 20:10:47 +1000 Subject: [PATCH] Remove usage of Java 11 method not caught by animal sniffer --- nms-patches/net/minecraft/world/InventorySubcontainer.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nms-patches/net/minecraft/world/InventorySubcontainer.patch b/nms-patches/net/minecraft/world/InventorySubcontainer.patch index 4e92b6527..738adf3cc 100644 --- a/nms-patches/net/minecraft/world/InventorySubcontainer.patch +++ b/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) {