Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HalpLibe loads first #22

Merged
merged 3 commits into from
Oct 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/main/java/turniplabs/halplibe/HalpLibe.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package turniplabs.halplibe;

import net.fabricmc.api.ModInitializer;
import net.fabricmc.loader.api.entrypoint.PreLaunchEntrypoint;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import turniplabs.halplibe.helper.*;
Expand All @@ -10,7 +11,7 @@
import java.io.File;
import java.util.Properties;

public class HalpLibe implements ModInitializer {
public class HalpLibe implements ModInitializer, PreLaunchEntrypoint {
public static final String MOD_ID = "halplibe";
public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);
static {
Expand All @@ -32,4 +33,9 @@ public void onInitialize() {
AchievementHelper.addPage(VANILLA_ACHIEVEMENTS);
LOGGER.info("HalpLibe initialized.");
}

@Override
public void onPreLaunch() {
// Initializes halp statics first
}
}
3 changes: 3 additions & 0 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
"entrypoints": {
"main": [
"turniplabs.halplibe.HalpLibe"
],
"preLaunch": [
"turniplabs.halplibe.HalpLibe"
]
},
"mixins": [
Expand Down
Loading