Make sure Recipe-Advancements have the proper parent

This commit is contained in:
Frank 2023-12-19 18:43:29 +01:00
parent 460b7333d8
commit 98d49997fd

View file

@ -118,10 +118,10 @@ public class AdvancementManager {
ResourceLocation ID; ResourceLocation ID;
if (type == AdvancementType.RECIPE_DECORATIONS) { if (type == AdvancementType.RECIPE_DECORATIONS) {
ID = new ResourceLocation(id.getNamespace(), "recipes/decorations/" + id.getPath()); ID = new ResourceLocation(id.getNamespace(), "recipes/decorations/" + id.getPath());
//builder.parent(RECIPES_ROOT); //will be root by default builder.parent(RECIPES_ROOT); //will be root by default
} else if (type == AdvancementType.RECIPE_TOOL) { } else if (type == AdvancementType.RECIPE_TOOL) {
ID = new ResourceLocation(id.getNamespace(), "recipes/tools/" + id.getPath()); ID = new ResourceLocation(id.getNamespace(), "recipes/tools/" + id.getPath());
//builder.parent(RECIPES_ROOT); //will be root by default builder.parent(RECIPES_ROOT); //will be root by default
} else { } else {
ID = id; ID = id;
} }