Skip to content

Commit

Permalink
Fix TagOutput::get for empty outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
malte0811 committed Jan 20, 2024
1 parent f11754e commit c24364a
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,12 @@ public ItemStack get()
{
if(cachedStack==null)
cachedStack = rawData.map(
iws -> IEApi.getPreferredStackbyMod(iws.getMatchingStacks()),
iws -> {
if(iws.basePredicate.isEmpty())
return ItemStack.EMPTY;
else
return IEApi.getPreferredStackbyMod(iws.getMatchingStacks());
},
Function.identity()
);
return cachedStack;
Expand Down

0 comments on commit c24364a

Please sign in to comment.