Skip to content

Commit

Permalink
Merge branch 'Bug-Fix' into 1.7.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
UselessBullets committed Oct 22, 2023
2 parents 085854c + b26912f commit 5806909
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
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

0 comments on commit 5806909

Please sign in to comment.