Fix custom recipe support

This commit is contained in:
modmuss50 2017-06-22 12:46:02 +01:00
parent 412d66593b
commit b083d6b5fc
No known key found for this signature in database
GPG key ID: 203A5ED4D3E48BEA
2 changed files with 5 additions and 2 deletions

View file

@ -149,7 +149,7 @@ public class GuiAutoCrafting extends GuiBase {
drawString("Inventory", 8, 82, 4210752, layer); drawString("Inventory", 8, 82, 4210752, layer);
IRecipe recipe = tileAutoCraftingTable.getIRecipe(); IRecipe recipe = tileAutoCraftingTable.getIRecipe();
if (recipe != null) { if (recipe != null && ! tileAutoCraftingTable.customRecipe) {
renderRecipe(recipe, guiLeft + 91, 66 + guiTop); renderRecipe(recipe, guiLeft + 91, 66 + guiTop);
} }
} }

View file

@ -93,7 +93,7 @@ public class TileAutoCraftingTable extends TilePowerAcceptor implements IContain
} }
}, 3, 3); }, 3, 3);
} }
for (int i = 0; i < 8; i++) { for (int i = 0; i < 9; i++) {
inventoryCrafting.setInventorySlotContents(i, inventory.getStackInSlot(i)); inventoryCrafting.setInventorySlotContents(i, inventory.getStackInSlot(i));
} }
return inventoryCrafting; return inventoryCrafting;
@ -120,6 +120,9 @@ public class TileAutoCraftingTable extends TilePowerAcceptor implements IContain
} }
} }
} }
if(recipe == null){
progress = 0;
}
} }
public boolean canMake(IRecipe recipe) { public boolean canMake(IRecipe recipe) {