mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 10:17:38 +01:00
We build for Java 1.5.
By: EvilSeph <evilseph@gmail.com>
This commit is contained in:
parent
02fa535888
commit
bdccfb5797
@ -107,7 +107,7 @@ public class UnsafeList<E> extends AbstractList<E> implements List<E>, 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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user