From eca3153bb6c704c6e03890642a1b7e10b521aa5f Mon Sep 17 00:00:00 2001 From: TheMCLoveMan Date: Thu, 29 Feb 2024 23:07:39 +0100 Subject: [PATCH] UselessRecipeProvider: replace deprecated constructor --- .../net/themcbrothers/uselessmod/data/UselessDataGen.java | 2 +- .../uselessmod/data/UselessRecipeProvider.java | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main/java/net/themcbrothers/uselessmod/data/UselessDataGen.java b/src/main/java/net/themcbrothers/uselessmod/data/UselessDataGen.java index 663324fa..4209347b 100644 --- a/src/main/java/net/themcbrothers/uselessmod/data/UselessDataGen.java +++ b/src/main/java/net/themcbrothers/uselessmod/data/UselessDataGen.java @@ -48,7 +48,7 @@ public static void dataGen(final GatherDataEvent event) { .add(NeoForgeRegistries.Keys.BIOME_MODIFIERS, UselessBiomeModifiers::bootstrap); generator.addProvider(event.includeServer(), new DatapackBuiltinEntriesProvider(packOutput, lookupProvider, registrySetBuilder, Set.of(UselessMod.MOD_ID))); - generator.addProvider(event.includeServer(), new UselessRecipeProvider(packOutput, lookupProvider)); + generator.addProvider(event.includeServer(), new UselessRecipeProvider(packOutput)); generator.addProvider(event.includeServer(), new UselessLanguageProvider(packOutput)); generator.addProvider(event.includeServer(), new AdvancementProvider(packOutput, lookupProvider, existingFileHelper, List.of(new UselessAdvancementProvider()))); generator.addProvider(event.includeServer(), UselessLootTableProvider.create(packOutput)); diff --git a/src/main/java/net/themcbrothers/uselessmod/data/UselessRecipeProvider.java b/src/main/java/net/themcbrothers/uselessmod/data/UselessRecipeProvider.java index 417c311e..2cba9b23 100644 --- a/src/main/java/net/themcbrothers/uselessmod/data/UselessRecipeProvider.java +++ b/src/main/java/net/themcbrothers/uselessmod/data/UselessRecipeProvider.java @@ -1,6 +1,5 @@ package net.themcbrothers.uselessmod.data; -import net.minecraft.core.HolderLookup; import net.minecraft.data.PackOutput; import net.minecraft.data.recipes.*; import net.minecraft.world.item.Items; @@ -20,13 +19,11 @@ import net.themcbrothers.uselessmod.world.item.crafting.LightSwitchConvertRecipe; import net.themcbrothers.uselessmod.world.item.crafting.PaintBrushDyeRecipe; -import java.util.concurrent.CompletableFuture; - import static net.themcbrothers.uselessmod.UselessMod.rl; public class UselessRecipeProvider extends RecipeProvider { - public UselessRecipeProvider(PackOutput packOutput, CompletableFuture lookupProvider) { - super(packOutput, lookupProvider); + public UselessRecipeProvider(PackOutput packOutput) { + super(packOutput); } @Override