diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/crafting/ActuallyRecipes.java b/src/main/java/de/ellpeck/actuallyadditions/mod/crafting/ActuallyRecipes.java index 95252e1fc..6d73dba83 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/crafting/ActuallyRecipes.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/crafting/ActuallyRecipes.java @@ -9,12 +9,11 @@ import net.minecraftforge.registries.ForgeRegistries; import net.minecraftforge.registries.RegistryObject; public class ActuallyRecipes { - public static final DeferredRegister> RECIPE_TYPES = DeferredRegister.create(ForgeRegistries.RECIPE_TYPES, ActuallyAdditions.MODID); public static final DeferredRegister> SERIALIZERS = DeferredRegister.create(ForgeRegistries.RECIPE_SERIALIZERS, ActuallyAdditions.MODID); public static void init(IEventBus bus) { - RECIPE_TYPES.register(bus); SERIALIZERS.register(bus); + Types.RECIPE_TYPES.register(bus); } public static final RegistryObject> KEEP_DATA_SHAPED_RECIPE = SERIALIZERS.register(RecipeKeepDataShaped.NAME, RecipeKeepDataShaped.Serializer::new); @@ -31,6 +30,8 @@ public class ActuallyRecipes { public static class Types { + public static final DeferredRegister> RECIPE_TYPES = DeferredRegister.create(ForgeRegistries.RECIPE_TYPES, ActuallyAdditions.MODID); + public static final RegistryObject> LASER = RECIPE_TYPES.register("laser", () -> new RecipeType<>() {}); public static final RegistryObject> EMPOWERING = RECIPE_TYPES.register("empower", () -> new RecipeType<>() {}); public static final RegistryObject> CRUSHING = RECIPE_TYPES.register("crushing", () -> new RecipeType<>() {});