Hi, I'm upgrading my mod to Forge 1.18.2 (latest version -- 40.0.12) and I can't find a way to register my custom RecipeType.
In 1.18.1, I was using this code:
public static final ResourceLocation Furniture_Recipe_Loc = new ResourceLocation(Furnish.MODID, "furniture_making");
public static final RecipeType<FurnitureRecipe> Furniture_Recipe = RecipeType.register(Furniture_Recipe_Loc.toString());
Now it fails to load because "Registry is already frozen (trying to add key ResourceKey[minecraft:recipe_type / furnish:furniture_making])".
I've had a similar issue with blocks registering and solved it by converting all my block declarations to RegistryObject<Block> declarations, therefore using a DeferredRegister.
The problem is there is no RECIPE_TYPE registry in ForgeRegistries (only RECIPE_SERIALIZERS) which makes creating a DeferredRegister impossible. There is also no RegistryEvent.Register<RecipeType>.
Any help would be appreciated!
- Wouink