diff --git a/src/main/java/techreborn/items/ItemFrequencyTransmitter.java b/src/main/java/techreborn/items/ItemFrequencyTransmitter.java index 393c88a92..200192f7d 100644 --- a/src/main/java/techreborn/items/ItemFrequencyTransmitter.java +++ b/src/main/java/techreborn/items/ItemFrequencyTransmitter.java @@ -15,7 +15,6 @@ import net.minecraftforge.common.DimensionManager; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; import reborncore.client.hud.StackInfoElement; -import reborncore.client.hud.StackInfoHUD; import reborncore.common.util.ChatUtils; import reborncore.common.util.Color; import techreborn.client.TechRebornCreativeTabMisc; @@ -32,7 +31,6 @@ public class ItemFrequencyTransmitter extends ItemTRNoDestroy { setUnlocalizedName("techreborn.frequencyTransmitter"); setCreativeTab(TechRebornCreativeTabMisc.instance); setMaxStackSize(1); - StackInfoHUD.registerElement(new StackInfoFreqTransmitter()); this.addPropertyOverride(new ResourceLocation("techreborn:coords"), new IItemPropertyGetter() { @SideOnly(Side.CLIENT) public float apply(ItemStack stack, diff --git a/src/main/java/techreborn/proxies/ClientProxy.java b/src/main/java/techreborn/proxies/ClientProxy.java index aab1c1fee..297f18e23 100644 --- a/src/main/java/techreborn/proxies/ClientProxy.java +++ b/src/main/java/techreborn/proxies/ClientProxy.java @@ -20,6 +20,7 @@ import net.minecraftforge.fml.client.registry.RenderingRegistry; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; import reborncore.RebornCore; +import reborncore.client.hud.StackInfoHUD; import reborncore.client.multiblock.MultiblockRenderEvent; import reborncore.common.blocks.BlockMachineBase; import techreborn.Core; @@ -35,6 +36,7 @@ import techreborn.client.render.ModelDynamicCell; import techreborn.client.render.entitys.RenderNukePrimed; import techreborn.entitys.EntityNukePrimed; import techreborn.init.ModBlocks; +import techreborn.items.ItemFrequencyTransmitter; import techreborn.lib.ModInfo; import techreborn.manual.loader.ManualLoader; @@ -67,6 +69,7 @@ public class ClientProxy extends CommonProxy { @Override public void preInit(FMLPreInitializationEvent event) { super.preInit(event); + StackInfoHUD.registerElement(new ItemFrequencyTransmitter.StackInfoFreqTransmitter()); RenderingRegistry.registerEntityRenderingHandler(EntityNukePrimed.class, new RenderManagerNuke()); ManualLoader loader = new ManualLoader(new File(event.getModConfigurationDirectory(), "techreborn"));