Fix server crash when adding guide recipe to JEI (#1045)
This commit is contained in:
parent
24f110f790
commit
bb9347ba5a
1 changed files with 3 additions and 0 deletions
|
@ -44,6 +44,9 @@ public class GuideBloodMagic
|
||||||
public static void handleBookRecipe(boolean add)
|
public static void handleBookRecipe(boolean add)
|
||||||
{
|
{
|
||||||
if (Loader.isModLoaded("JEI")) {
|
if (Loader.isModLoaded("JEI")) {
|
||||||
|
if (BloodMagicPlugin.jeiRuntime == null)
|
||||||
|
return;
|
||||||
|
|
||||||
if (add)
|
if (add)
|
||||||
BloodMagicPlugin.jeiRuntime.getRecipeRegistry().addRecipe(CompatibilityGuideAPI.guideRecipe);
|
BloodMagicPlugin.jeiRuntime.getRecipeRegistry().addRecipe(CompatibilityGuideAPI.guideRecipe);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue