Fix custom recipe support
This commit is contained in:
parent
412d66593b
commit
b083d6b5fc
2 changed files with 5 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue