aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources
diff options
context:
space:
mode:
authorRoman / Linnea Gräf <roman.graef@gmail.com>2022-09-01 17:15:51 +0200
committerGitHub <noreply@github.com>2022-09-01 17:15:51 +0200
commit43aa4ae5059012171372cb182c46bf95905e811e (patch)
tree73709c1472e21981efadd00c73f30936cee0ef97 /src/main/resources
parentce85f467928e085d4756c04cdf60b6a330b756e3 (diff)
downloadNotEnoughUpdates-43aa4ae5059012171372cb182c46bf95905e811e.tar.gz
NotEnoughUpdates-43aa4ae5059012171372cb182c46bf95905e811e.tar.bz2
NotEnoughUpdates-43aa4ae5059012171372cb182c46bf95905e811e.zip
Warn on invalid forge configs (and crash on 1.19 cause java is a bitch and i dont want to write a custom tweaker to load jar in jars, even tho i totally could, it would just not be very practical) (#236)
* warning * Also warn on fabric * also work on forge * Fix grammar issue
Diffstat (limited to 'src/main/resources')
-rw-r--r--src/main/resources/META-INF/mods.toml14
-rw-r--r--src/main/resources/fabric.mod.json10
-rw-r--r--src/main/resources/mixins.notenoughupdates.json1
3 files changed, 25 insertions, 0 deletions
diff --git a/src/main/resources/META-INF/mods.toml b/src/main/resources/META-INF/mods.toml
new file mode 100644
index 00000000..281faf65
--- /dev/null
+++ b/src/main/resources/META-INF/mods.toml
@@ -0,0 +1,14 @@
+# This mods.toml is loaded by forge 1.13-1.19 and is only here to make forge display an error message
+modLoader = "javafml"
+loaderVersion = "[12,)"
+license = "LGPL"
+
+[[mods]]
+modId="notenoughupdateserrordisplay"
+version="99.99"
+displayName="NotEnoughUpdates (1.8.9)"
+description='''
+This mod description is only here to warn you about using the wrong version of Minecraft and Forge.
+'''
+
+
diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json
new file mode 100644
index 00000000..8dd63bf3
--- /dev/null
+++ b/src/main/resources/fabric.mod.json
@@ -0,0 +1,10 @@
+{
+ "id": "notenoughupdates",
+ "version": "9999.0",
+ "schemaVersion": 1,
+ "entrypoints": {
+ "main": [
+ "io.github.moulberry.notenoughupdates.envcheck.FabricEntrypoint"
+ ]
+ }
+}
diff --git a/src/main/resources/mixins.notenoughupdates.json b/src/main/resources/mixins.notenoughupdates.json
index 8b1d4559..ed1ba55a 100644
--- a/src/main/resources/mixins.notenoughupdates.json
+++ b/src/main/resources/mixins.notenoughupdates.json
@@ -2,6 +2,7 @@
"package": "io.github.moulberry.notenoughupdates.mixins",
"refmap": "mixins.notenoughupdates.refmap.json",
"minVersion": "0.7",
+ "plugin": "io.github.moulberry.notenoughupdates.envcheck.NEUMixinConfigPlugin",
"compatibilityLevel": "JAVA_8",
"mixins": [
"AccessorEntityAgeable",