1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-08-31 17:47:56 +00:00

Set stack size when crafting coloured items

Fixes #793
This commit is contained in:
Jonathan Coates
2021-05-20 18:12:30 +01:00
committed by Jummit
parent 10aa6c5297
commit b5d1e618b9

View File

@@ -72,10 +72,11 @@ public final class ColourableRecipe extends SpecialCraftingRecipe {
}
}
if (colourable.isEmpty()) {
return ItemStack.EMPTY;
}
return ((IColouredItem) colourable.getItem()).withColour(colourable, tracker.getColour());
if( colourable.isEmpty() ) return ItemStack.EMPTY;
ItemStack stack = ((IColouredItem) colourable.getItem()).withColour( colourable, tracker.getColour() );
stack.setCount( 1 );
return stack;
}
@Override