Fix priority queue crash

This commit is contained in:
Bernhard Bonigl committed 2016-02-23 21:50:50 +01:00
1 parent 584fe8e582
commit d044409a5d
1 file changed
+1 -1
@@ -17,7 +17,7 @@ import java.util.PriorityQueue;
*/
public class RecipeMatchRegistry {
protected final PriorityQueue<RecipeMatch> items = new PriorityQueue<RecipeMatch>(0, RecipeComparator.INSTANCE);
protected final PriorityQueue<RecipeMatch> items = new PriorityQueue<RecipeMatch>(1, RecipeComparator.INSTANCE);
public RecipeMatch.Match matches(Collection<ItemStack> stacks) {
return matches(stacks.toArray(new ItemStack[stacks.size()]));