From faad2dca4c285a0ecc8093a5239185e976dc02c0 Mon Sep 17 00:00:00 2001 From: kmecpp Date: Tue, 25 Dec 2018 12:19:10 -0500 Subject: [PATCH] Fix dupe bug with factorioes --- .../java/mekanism/common/tile/TileEntityFactory.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/java/mekanism/common/tile/TileEntityFactory.java b/src/main/java/mekanism/common/tile/TileEntityFactory.java index 9ffea1ff7..0c9dca5ad 100644 --- a/src/main/java/mekanism/common/tile/TileEntityFactory.java +++ b/src/main/java/mekanism/common/tile/TileEntityFactory.java @@ -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; } -} \ No newline at end of file +}