Skip to content

Commit

Permalink
HalpLibe loads first
Browse files Browse the repository at this point in the history
This should fix the items and blocks being null for every single mod that uses halplibe as a dependency
  • Loading branch information
UselessBullets committed Oct 22, 2023
1 parent d2c4024 commit b26912f
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 b26912f

Please sign in to comment.