Fix #2842 Register the recipe type with vanilla's registry.

This commit is contained in:
modmuss50 2022-03-02 02:32:51 +00:00
parent f2be7d0acc
commit d59092ac5c

View file

@ -24,7 +24,6 @@
package reborncore.common.crafting;
import net.minecraft.recipe.RecipeSerializer;
import net.minecraft.util.Identifier;
import net.minecraft.util.registry.Registry;
import reborncore.common.crafting.serde.RebornRecipeSerde;
@ -50,7 +49,8 @@ public class RecipeManager {
RebornRecipeType<R> type = new RebornRecipeType<>(recipeSerde, name);
recipeTypes.put(name, type);
Registry.register(Registry.RECIPE_SERIALIZER, name, (RecipeSerializer<?>) type);
Registry.register(Registry.RECIPE_TYPE, name, type);
Registry.register(Registry.RECIPE_SERIALIZER, name, type);
return type;
}