Set stack size to 1 for rendering

This commit is contained in:
Florian Scandella 2017-09-02 01:06:25 +02:00
parent a3269826f9
commit 53f5724657

View file

@ -126,8 +126,10 @@ public class TesrRenderHelper
*/
public static void renderItem2dWithAmount( IAEItemStack itemStack, float itemScale, float spacing )
{
final ItemStack renderStack = itemStack.getItemStack();
renderStack.setCount( 1 );
TesrRenderHelper.renderItem2d( itemStack.getItemStack(), itemScale );
TesrRenderHelper.renderItem2d( renderStack, itemScale );
final long stackSize = itemStack.getStackSize();
final String renderedStackSize = NUMBER_CONVERTER.toWideReadableForm( stackSize );