Crash fixes, fix more blocks

This commit is contained in:
Vincent Lee committed 2019-03-21 23:43:16 -05:00
1 parent b022c8d693
commit b80f998688
136 files changed
+340 -261

No files matched your search

@@ -25,7 +25,12 @@ public class RecipeMiniFlower extends RecipeManaInfusion {
@Override
public boolean matches(ItemStack stack) {
ResourceLocation key = BotaniaAPI.internalHandler.getStackSubTileKey(stack);
ResourceLocation input = BotaniaAPI.internalHandler.getStackSubTileKey(getInput().getMatchingStacks()[0]);
ItemStack[] matching = getInput().getMatchingStacks();
if(matching.length == 0)
return false;
ResourceLocation input = BotaniaAPI.internalHandler.getStackSubTileKey(matching[0]);
return key != null && key.equals(input);
}