Merge pull request #6 from kmecpp/patch-1

Fix dupe bug with factorioes
This commit is contained in:
iKEVAREZ 2018-12-27 18:31:09 +01:00 committed by GitHub
commit c3334c21d4
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)
{
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)
@ -1205,4 +1210,4 @@ public class TileEntityFactory extends TileEntityNoisyElectricBlock implements I
{
return securityComponent;
}
}
}