mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 08:48:34 +01:00
Fixed potential bug with booklet crafting page
This commit is contained in:
parent
21af1b4be5
commit
0577af4460
1 changed files with 2 additions and 2 deletions
|
@ -93,7 +93,7 @@ public class PageCrafting extends BookletPage{
|
|||
for(int i = 0; i < shaped.getInput().length; i++){
|
||||
Object input = shaped.getInput()[i];
|
||||
if(input != null){
|
||||
stacks[i] = input instanceof ItemStack ? (ItemStack)input : ((ArrayList<ItemStack>)input).get(0);
|
||||
stacks[i] = input instanceof ItemStack ? (ItemStack)input : (((ArrayList<ItemStack>)input).isEmpty() ? null : ((ArrayList<ItemStack>)input).get(0));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -101,7 +101,7 @@ public class PageCrafting extends BookletPage{
|
|||
ShapelessOreRecipe shapeless = (ShapelessOreRecipe)recipe;
|
||||
for(int i = 0; i < shapeless.getInput().size(); i++){
|
||||
Object input = shapeless.getInput().get(i);
|
||||
stacks[i] = input instanceof ItemStack ? (ItemStack)input : ((ArrayList<ItemStack>)input).get(0);
|
||||
stacks[i] = input instanceof ItemStack ? (ItemStack)input : (((ArrayList<ItemStack>)input).isEmpty() ? null : ((ArrayList<ItemStack>)input).get(0));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue