From 8a2da93defa190856fde85b9dc8acfdc01fd2077 Mon Sep 17 00:00:00 2001 From: tterrag1098 Date: Sat, 21 Feb 2015 18:50:50 -0500 Subject: [PATCH] Fix odd dupe bug when painting buffers --- .../crazypants/enderio/machine/buffer/BlockBuffer.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/crazypants/enderio/machine/buffer/BlockBuffer.java b/src/main/java/crazypants/enderio/machine/buffer/BlockBuffer.java index fc5101dd..8647fd5e 100644 --- a/src/main/java/crazypants/enderio/machine/buffer/BlockBuffer.java +++ b/src/main/java/crazypants/enderio/machine/buffer/BlockBuffer.java @@ -158,8 +158,11 @@ public class BlockBuffer extends AbstractMachineBlock implements IFa if(paintSource == null) { return new ResultStack[0]; } - return new ResultStack[] { new ResultStack(createItemStackForSourceBlock(MachineRecipeInput.getInputForSlot(0, inputs).copy(), - Block.getBlockFromItem(paintSource.getItem()), paintSource.getItemDamage())) }; + ItemStack target = MachineRecipeInput.getInputForSlot(0, inputs); + target = target.copy(); + target.stackSize = 1; + return new ResultStack[] { new ResultStack(createItemStackForSourceBlock(target, Block.getBlockFromItem(paintSource.getItem()), + paintSource.getItemDamage())) }; } }