Fix dupe bug with factorioes

This commit is contained in:
kmecpp 2018-12-25 12:19:10 -05:00 committed by GitHub
parent 611627519d
commit faad2dca4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -447,7 +447,12 @@ public class TileEntityFactory extends TileEntityNoisyElectricBlock implements I
for(int id : inputSlots) for(int id : inputSlots)
{ {
invStacks.add(InvID.get(id, inventory)); InvID item = InvID.get(id, inventory);
if(item.stack != null && item.stack.hasTagCompound())
{
return; //Don't sort items with NBT data (dupe fix)
}
invStacks.add(item);
} }
for(InvID invID1 : invStacks) for(InvID invID1 : invStacks)