Crash (NPE) with recipes that use an enchanted book
Xilef11 opened this issue ยท 2 comments
I'm using guide-api for my mod's documentation, but I get a NPE (that crashes the game) when opening the page for a recipe that uses an enchanted book because the CreativeTab passed to getSubItems() is null. (the recipe is defined in json with minecraft:enchanted_book and it works fine for crafting and in JEI)
I'm not sure if this is a bug or if I'm doing something wrong though...
I am unable to reproduce this with the following json. All I did was take yours and replace it with vanilla alternatives.
I had made a change I thought I'd removed. Removed that and I can reproduce.
{
"result": {
"item": "minecraft:potato"
},
"ingredients": [
{
"item": "minecraft:enchanted_book",
"data": 32767
},
{
"item": "minecraft:bone_block"
}
],
"type": "minecraft:crafting_shapeless"
}