Skip to content

Commit

Permalink
blockag
Browse files Browse the repository at this point in the history
  • Loading branch information
unix-supremacist committed Dec 8, 2023
1 parent c530516 commit 062a081
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/io/github/unix_supremacist/data/BlockTag.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package io.github.unix_supremacist.data;

import io.github.unix_supremacist.Alchemist;
import io.github.unix_supremacist.alabli.AlabliRegistry;
import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput;
import net.fabricmc.fabric.api.datagen.v1.provider.FabricTagProvider;
import net.minecraft.core.HolderLookup;
Expand Down Expand Up @@ -30,7 +31,7 @@ public BlockTag(FabricDataOutput output, CompletableFuture<HolderLookup.Provider

protected static void addExchange(TagKey<Block> tag){
ArrayList<Block> arrayList = new ArrayList<>();
BuiltInRegistries.BLOCK.getTagOrEmpty(tag).iterator().forEachRemaining(t ->arrayList.add(t.value()));
AlabliRegistry.registerBlockTag(tag, arrayList);
exchanges.add(arrayList);
}

Expand Down

0 comments on commit 062a081

Please sign in to comment.