Skip to content

Commit

Permalink
Use new event
Browse files Browse the repository at this point in the history
  • Loading branch information
yuesha-yc committed Dec 12, 2024
1 parent f2e1eb5 commit 1b5dcf8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion src/main/java/com/teammoeg/frostedheart/FHClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ public static void init() {

LOGGER.info(CLIENT_INIT, "Initializing client");
FHDynamicModels.setup();
KGlyphProvider.addListener();
// Moved to FHClientEventsMod
// KGlyphProvider.addListener();

LOGGER.info(CLIENT_INIT, "Registering client forge event listeners");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import com.teammoeg.frostedheart.content.research.research.effects.EffectShowCategory;
import com.teammoeg.frostedheart.content.scenario.client.ClientScene;
import com.teammoeg.frostedheart.content.scenario.client.dialog.HUDDialog;
import com.teammoeg.frostedheart.content.scenario.client.gui.layered.font.KGlyphProvider;
import com.teammoeg.frostedheart.content.tips.TipDisplayManager;
import com.teammoeg.frostedheart.content.tips.TipLockManager;
import com.teammoeg.frostedheart.content.tips.client.TipElement;
Expand Down Expand Up @@ -331,13 +332,6 @@ public static void sendLoginUpdateReminder(ClientPlayerNetworkEvent.LoggingIn ev

}

@SubscribeEvent
public static void addReloadListeners(AddReloadListenerEvent event) {

// event.addListener(KGlyphProvider.INSTANCE);

}

@SuppressWarnings("resource")
@SubscribeEvent
public static void tickClient(ClientTickEvent event) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import com.teammoeg.frostedheart.content.climate.heatdevice.generator.t1.T1GeneratorRenderer;
import com.teammoeg.frostedheart.content.climate.heatdevice.generator.t2.T2GeneratorRenderer;
import com.teammoeg.frostedheart.content.research.blocks.MechCalcRenderer;
import com.teammoeg.frostedheart.content.scenario.client.gui.layered.font.KGlyphProvider;
import com.teammoeg.frostedheart.content.town.resident.WanderingRefugeeRenderer;
import com.teammoeg.frostedheart.content.utility.heatervest.HeaterVestExtension;
import com.teammoeg.frostedheart.content.utility.heatervest.HeaterVestModel;
Expand Down Expand Up @@ -90,6 +91,11 @@ public static void setup(FMLClientSetupEvent event) {
LOGGER.info(CLIENT_SETUP, "FML Client setup event finished");
}

@SubscribeEvent
public static void registerReloadListeners(RegisterClientReloadListenersEvent event) {
event.registerReloadListener(KGlyphProvider.INSTANCE);
}

@SubscribeEvent
public static void onCreativeTabContents(BuildCreativeModeTabContentsEvent event) {
CreativeTabItemHelper helper = new CreativeTabItemHelper(event.getTabKey(), event.getTab());
Expand Down

0 comments on commit 1b5dcf8

Please sign in to comment.