Skip to content

Commit

Permalink
UselessRecipeProvider: replace deprecated constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMCLoveMan committed Feb 29, 2024
1 parent 04f84b6 commit eca3153
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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<HolderLookup.Provider> lookupProvider) {
super(packOutput, lookupProvider);
public UselessRecipeProvider(PackOutput packOutput) {
super(packOutput);
}

@Override
Expand Down

0 comments on commit eca3153

Please sign in to comment.