Check ItemStack NBT for comparison in more places (#5491)

* Check NBT in a bunch more item comparision checks
* Fix Gas conversion checking stack size when comparing itemstacks
This commit is contained in:
Richard Freimer authored and Xander committed 2019-05-27 12:08:09 +08:00
1 parent 7438ad4d9e
commit eb2de11b72
20 files changed
+105 -81

No files matched your search

@@ -70,6 +70,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, IComparatorSupport {
@@ -240,7 +241,7 @@ public class TileEntityFactory extends TileEntityMachine implements IComputerInt
RecipeType toSet = null;
for (RecipeType type : RecipeType.values()) {
if (inventory.get(2).isItemEqual(type.getStack())) {
if (ItemHandlerHelper.canItemStacksStack(inventory.get(2), type.getStack())) {
toSet = type;
break;
}