mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 04:52:25 +00:00
Check NBT for factory sorting. Fixes #5436
This commit is contained in:
2 files changed
+6
-9
No files matched your search
@@ -67,6 +67,7 @@ import net.minecraft.util.NonNullList;
|
||||
import net.minecraft.util.text.translation.I18n;
|
||||
import net.minecraftforge.common.capabilities.Capability;
|
||||
import net.minecraftforge.fml.common.FMLCommonHandler;
|
||||
import net.minecraftforge.items.ItemHandlerHelper;
|
||||
|
||||
public class TileEntityFactory extends TileEntityMachine implements IComputerIntegration, ISideConfiguration,
|
||||
IGasHandler, ISpecialConfigData, ITierUpgradeable, ISustainedData {
|
||||
@@ -404,7 +405,11 @@ public class TileEntityFactory extends TileEntityMachine implements IComputerInt
|
||||
for (int j = i + 1; j < inputSlots.length; j++) {
|
||||
int checkSlotID = inputSlots[j];
|
||||
ItemStack checkStack = inventory.get(checkSlotID);
|
||||
if (StackUtils.diffIgnoreEmpty(stack, checkStack) || Math.abs(count - checkStack.getCount()) < 2) {
|
||||
if (Math.abs(count - checkStack.getCount()) < 2) {
|
||||
continue;
|
||||
}
|
||||
if (!stack.isEmpty() && !checkStack.isEmpty() && !ItemHandlerHelper
|
||||
.canItemStacksStack(stack, checkStack)) {
|
||||
continue;
|
||||
}
|
||||
//Output/Input will not match
|
||||
|
||||
Reference in new issue
Block a user