Skip to content

Commit 72a2a5d

Browse files
committed
fixed itemtags #c:X dont work
1 parent c2e579c commit 72a2a5d

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/main/java/com/devdyna/modname_id/datagen/Controller.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public static void gatherData(GatherDataEvent e) {
4242
// server
4343
DataBlockTag blocktag = new DataBlockTag(po, pr, f);
4444
providerGen(e, g, blocktag);
45-
providerGen(e, g, new DataItemTag(po, pr, blocktag.contentsGetter()));
45+
providerGen(e, g, new DataItemTag(po, pr, blocktag.contentsGetter(),f));
4646
providerGen(e, g, new LootTableProvider(po, Set.of(),
4747
List.of(
4848
// list of any loot table entries inside ./server/tables/

src/main/java/com/devdyna/modname_id/datagen/server/DataItemTag.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
package com.devdyna.modname_id.datagen.server;
22

33
import java.util.concurrent.CompletableFuture;
4-
4+
import com.devdyna.modname_id.Main;
5+
import net.neoforged.neoforge.common.data.ExistingFileHelper;
56
import net.minecraft.core.HolderLookup.Provider;
67
import net.minecraft.data.PackOutput;
78
import net.minecraft.data.tags.ItemTagsProvider;
@@ -11,8 +12,8 @@
1112

1213
public class DataItemTag extends ItemTagsProvider {
1314

14-
public DataItemTag(PackOutput o, CompletableFuture<Provider> p, CompletableFuture<TagLookup<Block>> b) {
15-
super(o, p, b);
15+
public DataItemTag(PackOutput o, CompletableFuture<Provider> p, CompletableFuture<TagLookup<Block>> b,ExistingFileHelper f) {
16+
super(o, p, b,Main.MODID,f);
1617
}
1718

1819
@Override

0 commit comments

Comments
 (0)