Fix #2842 Register the recipe type with vanilla's registry.
This commit is contained in:
parent
f2be7d0acc
commit
d59092ac5c
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue