This should fix the REI compatability.
The issue was caused by SieveDisplay throwing an error when being contructed with multiple probabilities for the same item:
Stream.collect(...) is throwing an IllegalStateException: Duplicate key [TypedEntryStack].
As far as I can tell this is being caused because EntryIngredient is handled as aList<EntryStack<?>> while being in the stream. Because the lists always contain only a single item they are seen equal and the exception is thrown.
When outside the stream (like in the foreach-loop) the EntryIngredient's are correctly handled and no exception is thrown.
This should fix the REI compatability. The issue was caused by
SieveDisplay
throwing an error when being contructed with multiple probabilities for the same item:Stream.collect(...)
is throwing anIllegalStateException: Duplicate key [TypedEntryStack]
. As far as I can tell this is being caused becauseEntryIngredient
is handled as aList<EntryStack<?>>
while being in the stream. Because the lists always contain only a single item they are seen equal and the exception is thrown. When outside the stream (like in the foreach-loop) theEntryIngredient
's are correctly handled and no exception is thrown.