Backport dupe fix (#3196)

This commit is contained in:
fscan
2017-11-05 05:37:21 +01:00
committed by GitHub
parent 07bcd528ea
commit 6f30658d41
@@ -136,10 +136,12 @@ class ItemHandlerAdapter implements IMEInventory<IAEItemStack>, IBaseMonitor<IAE
extracted.stackSize = remainingCurrentSlot;
}
// We're just gonna use the first stack we get our hands on as the template for the rest
// We're just gonna use the first stack we get our hands on as the template for the rest.
// In case some stupid itemhandler (aka forge) returns an internal state we have to do a second
// expensive copy again.
if( gathered == null )
{
gathered = extracted;
gathered = extracted.copy();
}
else
{