From d4f0790eca0153d7210433300d839b67060b95f9 Mon Sep 17 00:00:00 2001 From: WolfyScript Date: Sun, 6 Mar 2022 18:42:51 +0100 Subject: [PATCH] Enable the option "Show In Vanilla Recipe Book" by default --- .../customcrafting/data/cache/recipe_creator/RecipeCache.java | 2 +- .../me/wolfyscript/customcrafting/recipes/CustomRecipe.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/me/wolfyscript/customcrafting/data/cache/recipe_creator/RecipeCache.java b/src/main/java/me/wolfyscript/customcrafting/data/cache/recipe_creator/RecipeCache.java index 8d3528161..747b4a8e9 100644 --- a/src/main/java/me/wolfyscript/customcrafting/data/cache/recipe_creator/RecipeCache.java +++ b/src/main/java/me/wolfyscript/customcrafting/data/cache/recipe_creator/RecipeCache.java @@ -53,7 +53,7 @@ protected RecipeCache() { this.key = null; this.checkNBT = true; this.hidden = false; - this.vanillaBook = false; + this.vanillaBook = true; this.priority = RecipePriority.NORMAL; this.conditions = new Conditions(); this.group = ""; diff --git a/src/main/java/me/wolfyscript/customcrafting/recipes/CustomRecipe.java b/src/main/java/me/wolfyscript/customcrafting/recipes/CustomRecipe.java index 5676fdf76..bf8fd3b20 100644 --- a/src/main/java/me/wolfyscript/customcrafting/recipes/CustomRecipe.java +++ b/src/main/java/me/wolfyscript/customcrafting/recipes/CustomRecipe.java @@ -115,7 +115,7 @@ protected CustomRecipe(NamespacedKey namespacedKey, JsonNode node) { if (this.conditions == null) { this.conditions = new Conditions(); } - this.vanillaBook = node.path(KEY_VANILLA_BOOK).asBoolean(false); + this.vanillaBook = node.path(KEY_VANILLA_BOOK).asBoolean(true); this.hidden = node.path(KEY_HIDDEN).asBoolean(false); //Sets the result of the recipe if one exists in the config if (node.has(KEY_RESULT) && !(this instanceof CustomRecipeStonecutter)) { @@ -139,7 +139,7 @@ protected CustomRecipe(NamespacedKey key, RecipeType type) { this.group = ""; this.priority = RecipePriority.NORMAL; this.checkNBT = true; - this.vanillaBook = false; + this.vanillaBook = true; this.conditions = new Conditions(); this.hidden = false; }