From cbc2486161a028d0b7314c23995648586272312e Mon Sep 17 00:00:00 2001 From: AlgorithmX2 Date: Sun, 25 May 2014 17:43:42 -0500 Subject: [PATCH] Copy Item Stack before manipulating DSU. --- integration/modules/helpers/MFRDSU.java | 1 + 1 file changed, 1 insertion(+) diff --git a/integration/modules/helpers/MFRDSU.java b/integration/modules/helpers/MFRDSU.java index 6b999005d..0acd63cf2 100644 --- a/integration/modules/helpers/MFRDSU.java +++ b/integration/modules/helpers/MFRDSU.java @@ -74,6 +74,7 @@ public class MFRDSU implements IMEInventory { if ( request.getStackSize() >= is.stackSize ) { + is = is.copy(); if ( mode == Actionable.MODULATE ) dsu.setStoredItemCount( 0 ); return AEItemStack.create( is );