Skip to content

Commit

Permalink
ugh
Browse files Browse the repository at this point in the history
  • Loading branch information
AViewFromTheTop committed Jan 17, 2025
1 parent bdbf50a commit a910cb3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
2 changes: 0 additions & 2 deletions src/main/java/net/frozenblock/lib/FrozenClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ public final class FrozenClient implements ClientModInitializer {

@Override
public void onInitializeClient() {
FrozenMain.init();

FrozenClientRegistry.initRegistry();
ModIntegrations.initializePreFreeze(); // Mod integrations must run after normal mod initialization

Expand Down
12 changes: 3 additions & 9 deletions src/main/java/net/frozenblock/lib/FrozenMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,14 @@
import org.quiltmc.qsl.frozenblock.misc.datafixerupper.impl.ServerFreezer;

public final class FrozenMain extends FrozenModInitializer {
public static boolean INITIALIZED = false;

public FrozenMain() {
super(FrozenSharedConstants.MOD_ID);
}

public static void init() {
if (INITIALIZED) return;
INITIALIZED = true;
@Override
public void onInitialize(String modId, ModContainer container) {
if (!FabricLoader.getInstance().isModLoaded("trailiertales")) throw new AssertionError();

FrozenRegistry.initRegistry();

Expand Down Expand Up @@ -107,11 +106,6 @@ public static void init() {
ServerCapeData.init();

FrozenMainEntrypoint.EVENT.invoker().init(); // includes dev init
}

@Override
public void onInitialize(String modId, ModContainer container) {
init();

ArgumentTypeInfos.register(
BuiltInRegistries.COMMAND_ARGUMENT_TYPE,
Expand Down

0 comments on commit a910cb3

Please sign in to comment.