Skip to content

Commit

Permalink
Use ForgeRegistries instead of the Block and Item ones
Browse files Browse the repository at this point in the history
  • Loading branch information
mezz committed Sep 16, 2016
1 parent 4c448fe commit 3033ece
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/mezz/jei/ItemRegistryFactory.java
Expand Up @@ -24,6 +24,7 @@
import net.minecraft.item.ItemStack;
import net.minecraft.potion.PotionHelper;
import net.minecraft.tileentity.TileEntityFurnace;
import net.minecraftforge.fml.common.registry.ForgeRegistries;

public class ItemRegistryFactory {
@Nonnull
Expand Down Expand Up @@ -64,10 +65,10 @@ public ItemRegistry createItemRegistry() {
}
}

for (Block block : Block.REGISTRY) {
for (Block block : ForgeRegistries.BLOCKS) {
addBlockAndSubBlocks(block);
}
for (Item item : Item.REGISTRY) {
for (Item item : ForgeRegistries.ITEMS) {
addItemAndSubItems(item);
}

Expand Down

0 comments on commit 3033ece

Please sign in to comment.