diff --git a/src/main/java/io/github/unix_supremacist/content/AlchemistBlocks.java b/src/main/java/io/github/unix_supremacist/content/AlchemistBlocks.java index a5e9102..3337758 100644 --- a/src/main/java/io/github/unix_supremacist/content/AlchemistBlocks.java +++ b/src/main/java/io/github/unix_supremacist/content/AlchemistBlocks.java @@ -2,6 +2,7 @@ import io.github.unix_supremacist.Alchemist; import io.github.unix_supremacist.alabli.Alabli; +import io.github.unix_supremacist.alabli.AlabliRegistry; import io.github.unix_supremacist.block.TransmutionCircleBlock; import lombok.Getter; import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings; @@ -16,6 +17,6 @@ public enum AlchemistBlocks { AlchemistBlocks(Block block){ this.block = block; - Registry.register(BuiltInRegistries.BLOCK, new ResourceLocation(Alchemist.MODID, this.name()), block); + AlabliRegistry.registerBlock(block, this.name()); } } diff --git a/src/main/java/io/github/unix_supremacist/content/AlchemistItems.java b/src/main/java/io/github/unix_supremacist/content/AlchemistItems.java index 847144f..911677b 100644 --- a/src/main/java/io/github/unix_supremacist/content/AlchemistItems.java +++ b/src/main/java/io/github/unix_supremacist/content/AlchemistItems.java @@ -2,6 +2,7 @@ import io.github.unix_supremacist.Alchemist; import io.github.unix_supremacist.alabli.Alabli; +import io.github.unix_supremacist.alabli.AlabliRegistry; import io.github.unix_supremacist.item.*; import lombok.Getter; import net.fabricmc.fabric.api.registry.FuelRegistry; @@ -64,7 +65,6 @@ public enum AlchemistItems { AlchemistItems(Item item, int burntime){ this.item = item; FuelRegistry.INSTANCE.add(item, burntime); - Registry.register(BuiltInRegistries.ITEM, new ResourceLocation(Alchemist.MODID, this.name()), item); - Alabli.items.add(item); + AlabliRegistry.registerItem(item, this.name()); } }