Fixes #3449: Prevent CellInventory#getCell() from mutating the cell itemstack definition (#3552)

CellInventory#getCell() initalizes the ItemStack with an empty NBT and therefore was messing with the item definition.
This commit is contained in:
fscan
2018-06-26 10:32:58 +02:00
committed by yueh
parent 8902af9766
commit 6bb465be0b
@@ -223,7 +223,7 @@ public class CellInventory implements ICellInventory
// any NBT data for empty cells instead of relying on an empty IItemContainer
if( CellInventory.isStorageCell( input.getDefinition() ) )
{
final IMEInventory meInventory = getCell( input.getDefinition(), null );
final IMEInventory meInventory = getCell( input.createItemStack(), null );
if( meInventory != null && !this.isEmpty( meInventory ) )
{
return input;