mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-18 11:29:30 +00:00
Fix odd dupe bug when painting buffers
This commit is contained in:
1 parent
fcf78ed23b
commit
8a2da93def
1 file changed
+5
-2
@@ -158,8 +158,11 @@ public class BlockBuffer extends AbstractMachineBlock<TileBuffer> 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())) };
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user