Fixes #3105: Dupe bug due to forge default itemhandler implementation. (#3106)

This commit is contained in:
yueh
2017-09-21 20:41:30 +02:00
committed by GitHub
parent 217cbf0982
commit d3a5be7ed6
@@ -136,10 +136,12 @@ class ItemHandlerAdapter implements IMEInventory<IAEItemStack>, IBaseMonitor<IAE
extracted.setCount( 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.isEmpty() )
{
gathered = extracted;
gathered = extracted.copy();
}
else
{