Set stack size when crafting coloured items

Fixes #793
This commit is contained in:
Jonathan Coates 2021-05-20 18:12:30 +01:00
parent b21866fbff
commit 34baa09b6c
1 changed files with 4 additions and 1 deletions

View File

@ -79,7 +79,10 @@ public ItemStack assemble( @Nonnull CraftingInventory inv )
}
if( colourable.isEmpty() ) return ItemStack.EMPTY;
return ((IColouredItem) colourable.getItem()).withColour( colourable, tracker.getColour() );
ItemStack stack = ((IColouredItem) colourable.getItem()).withColour( colourable, tracker.getColour() );
stack.setCount( 1 );
return stack;
}
@Override