diff --git a/src/main/java/org/bukkit/craftbukkit/util/UnsafeList.java b/src/main/java/org/bukkit/craftbukkit/util/UnsafeList.java index f23801e45b..818ca5e000 100644 --- a/src/main/java/org/bukkit/craftbukkit/util/UnsafeList.java +++ b/src/main/java/org/bukkit/craftbukkit/util/UnsafeList.java @@ -107,7 +107,7 @@ public class UnsafeList extends AbstractList implements List, RandomAcc int old = data.length; int rounded = Integer.highestOneBit(size - 1) << 1; if (rounded < old) { - data = Arrays.copyOf(data, rounded); + data = Java15Compat.Arrays_copyOf(data, rounded); } }