Skip to content

Commit

Permalink
Add fabric crasher for when julti as mod lol
Browse files Browse the repository at this point in the history
  • Loading branch information
DuncanRuns committed Aug 10, 2024
1 parent a5949f8 commit 70110c7
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/java/xyz/duncanruns/julti/util/FabricCrashUtil.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package xyz.duncanruns.julti.util;

public final class FabricCrashUtil {
private FabricCrashUtil() {
}

public void onInitialize() {
throw new RuntimeException("Julti is not supposed to be ran as a mod!");
}
}
14 changes: 14 additions & 0 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"schemaVersion": 1,
"id": "fabric-crasher",
"version": "0.0.0",
"name": "This will crash your game!!!",
"description": "Crashes the game to let people know that this isn't a mod.",
"license": "MIT",
"environment": "*",
"entrypoints": {
"main": [
"xyz.duncanruns.julti.util.FabricCrashUtil::onInitialize"
]
}
}

0 comments on commit 70110c7

Please sign in to comment.