Fixes #3449: Fix CellInventory to not mess with the item definition

This commit is contained in:
Florian Scandella
2018-06-20 23:09:42 +02:00
parent 4bd2797f5e
commit edc0cef2bb
@@ -125,7 +125,7 @@ public class ItemCellInventory extends AbstractCellInventory<IAEItemStack>
// any NBT data for empty cells instead of relying on an empty IItemContainer
if( ItemCellInventory.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;