The IllegalArgumentException comes from this constructor:
public PriorityQueue(int paramInt, Comparator<? super E> paramComparator)
{
if (paramInt < 1)
throw new IllegalArgumentException();
this.queue = new Object[paramInt];
this.comparator = paramComparator;
}
As you can see, it throws an IllegalArgumentException if
paramInt
is less then 1. The constructor is called from this line of of code:
PriorityQueue priorityqueue = new PriorityQueue(this.rawBufferIndex, new QuadComparator(this.rawBuffer, p_147564_1_ + (float)this.xOffset, p_147564_2_ + (float)this.yOffset, p_147564_3_ + (float)this.zOffset));
So
this.rawBufferIndex
(
paramInt
) is less then 1. I don't know the cause of that, but it may help you.