Skip to content

Commit 641cf0c

Browse files
authored
Merge pull request #83
Enable the option "Show In Vanilla Recipe Book" by default
2 parents a7ae114 + d4f0790 commit 641cf0c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/me/wolfyscript/customcrafting/data/cache/recipe_creator/RecipeCache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ protected RecipeCache() {
5353
this.key = null;
5454
this.checkNBT = true;
5555
this.hidden = false;
56-
this.vanillaBook = false;
56+
this.vanillaBook = true;
5757
this.priority = RecipePriority.NORMAL;
5858
this.conditions = new Conditions();
5959
this.group = "";

src/main/java/me/wolfyscript/customcrafting/recipes/CustomRecipe.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ protected CustomRecipe(NamespacedKey namespacedKey, JsonNode node) {
115115
if (this.conditions == null) {
116116
this.conditions = new Conditions();
117117
}
118-
this.vanillaBook = node.path(KEY_VANILLA_BOOK).asBoolean(false);
118+
this.vanillaBook = node.path(KEY_VANILLA_BOOK).asBoolean(true);
119119
this.hidden = node.path(KEY_HIDDEN).asBoolean(false);
120120
//Sets the result of the recipe if one exists in the config
121121
if (node.has(KEY_RESULT) && !(this instanceof CustomRecipeStonecutter)) {
@@ -139,7 +139,7 @@ protected CustomRecipe(NamespacedKey key, RecipeType<C> type) {
139139
this.group = "";
140140
this.priority = RecipePriority.NORMAL;
141141
this.checkNBT = true;
142-
this.vanillaBook = false;
142+
this.vanillaBook = true;
143143
this.conditions = new Conditions();
144144
this.hidden = false;
145145
}

0 commit comments

Comments
 (0)