Remove usage of Java 11 method not caught by animal sniffer

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2021-06-01 20:10:47 +10:00
parent 2784d9c66a
commit e42f86eb2d

View file

@ -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) {