mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 16:58:34 +01:00
Fixed Bug with the booklet crashing if a crafting recipe is turned off in the config
This commit is contained in:
parent
97c948828a
commit
a7fe955e6f
1 changed files with 11 additions and 9 deletions
|
@ -49,15 +49,17 @@ public class PageCrafting extends BookletPage{
|
||||||
if(this.recipes != null){
|
if(this.recipes != null){
|
||||||
ItemStack[] stacks = new ItemStack[this.recipes.length];
|
ItemStack[] stacks = new ItemStack[this.recipes.length];
|
||||||
for(int i = 0; i < this.recipes.length; i++){
|
for(int i = 0; i < this.recipes.length; i++){
|
||||||
ItemStack output = this.recipes[i].getRecipeOutput();
|
if(this.recipes[i] != null){
|
||||||
if(output != null){
|
ItemStack output = this.recipes[i].getRecipeOutput();
|
||||||
if(!this.arePageStacksWildcard){
|
if(output != null){
|
||||||
stacks[i] = output;
|
if(!this.arePageStacksWildcard){
|
||||||
}
|
stacks[i] = output;
|
||||||
else{
|
}
|
||||||
ItemStack wildcardOutput = output.copy();
|
else{
|
||||||
wildcardOutput.setItemDamage(Util.WILDCARD);
|
ItemStack wildcardOutput = output.copy();
|
||||||
stacks[i] = wildcardOutput;
|
wildcardOutput.setItemDamage(Util.WILDCARD);
|
||||||
|
stacks[i] = wildcardOutput;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue