Assemblicator Fixes for Transforming recipes (#5542)

* properly use IRecipe.getRemainingItems

* Fix formulaic assemblicator gui, not properly comparing itemstacks against ingredient

* Change some things to using variables to make it a bit easier to keep track of what is going on

* use constants for Assemblicator inventory slot numbers

* Check if it is a valid recipe when block gets loaded, so that it sends the proper information to the client
This commit is contained in:
Xander authored and GitHub committed 2019-07-06 11:42:52 +08:00
1 parent 0557a8bd23
commit 05166ee916
5 files changed
+173 -98

No files matched your search

@@ -32,7 +32,6 @@ import net.minecraft.item.ItemStack;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import net.minecraftforge.items.ItemHandlerHelper;
@SideOnly(Side.CLIENT)
public class GuiFormulaicAssemblicator extends GuiMekanismTile<TileEntityFormulaicAssemblicator> {
@@ -162,7 +161,7 @@ public class GuiFormulaicAssemblicator extends GuiMekanismTile<TileEntityFormula
int guiX = guiWidth + slot.xPos;
int guiY = guiHeight + slot.yPos;
if (slot.getStack().isEmpty() || !ItemHandlerHelper.canItemStacksStack(slot.getStack(), stack)) {
if (slot.getStack().isEmpty() || !tileEntity.formula.isIngredientInPos(tileEntity.getWorld(), slot.getStack(), i)) {
drawGradientRect(guiX, guiY, guiX + 16, guiY + 16, -2137456640, -2137456640);
}