stonecutter: fix crash w/o ModMenu, optimize assets

This commit is contained in:
Martin Prokoph
2025-11-22 20:01:19 +01:00
parent 4831da5076
commit 312096d989
26 changed files with 339 additions and 29 deletions

View File

@@ -21,7 +21,7 @@ import com.terraformersmc.modmenu.api.ModMenuApi;
import java.util.HashMap;
import java.util.Map;
public class MidnightLib implements ClientModInitializer, ModMenuApi {
public class MidnightLib implements ClientModInitializer {
//?} else if neoforge {
/*import com.mojang.brigadier.builder.LiteralArgumentBuilder;
import eu.midnightdust.lib.config.AutoCommand;
@@ -76,9 +76,10 @@ public class MidnightLib {
}
//? if fabric {
public static class ModMenuInit implements ModMenuApi {
@Override
public ConfigScreenFactory<?> getModConfigScreenFactory() {
return parent -> MidnightLibConfig.getScreen(parent,MOD_ID);
return parent -> MidnightLibConfig.getScreen(parent, MOD_ID);
}
@Override
@@ -90,6 +91,7 @@ public class MidnightLib {
});
return map;
}
}
//?}
/*? if neoforge {*/

View File

@@ -1,31 +0,0 @@
modLoader = "javafml"
loaderVersion = "[43,)"
#issueTrackerURL = ""
license = "MIT License"
[[mods]]
modId = "midnightlib"
version = "${version}"
displayName = "${name}"
logoFile = "midnightlib.png"
authors = "TeamMidnightDust, Motschen"
description = '''
Lightweight config library with config screens and commands.
'''
[[mixins]]
config = "midnightlib.mixins.json"
[[dependencies.midnightlib]]
modId = "forge"
mandatory = true
versionRange = "[43,)"
ordering = "NONE"
side = "BOTH"
[[dependencies.midnightlib]]
modId = "minecraft"
mandatory = true
versionRange = "[1.20,)"
ordering = "NONE"
side = "BOTH"

View File

@@ -1,31 +0,0 @@
modLoader = "javafml"
loaderVersion = "[2,)"
#issueTrackerURL = ""
license = "MIT License"
[[mods]]
modId = "midnightlib"
version = "${version}"
displayName = "${name}"
logoFile = "midnightlib.png"
authors = "TeamMidnightDust, Motschen"
description = '''
Lightweight config library with config screens and commands.
'''
[[mixins]]
config = "midnightlib.mixins.json"
[[dependencies.midnightlib]]
modId = "neoforge"
mandatory = true
versionRange = "[20.5,)"
ordering = "NONE"
side = "BOTH"
[[dependencies.midnightlib]]
modId = "minecraft"
mandatory = true
versionRange = "[1.20.5,)"
ordering = "NONE"
side = "BOTH"

View File

@@ -1 +0,0 @@
{}

View File

@@ -1,54 +0,0 @@
{
"schemaVersion": 1,
"id": "${id}",
"version": "${version}",
"name": "${name}",
"description": "Lightweight config library with config screens and commands.",
"authors": [
"Motschen"
],
"contributors": [
"maloryware",
"Jaffe2718"
],
"contact": {
"homepage": "https://www.midnightdust.eu/",
"sources": "https://github.com/TeamMidnightDust/MidnightLib",
"issues": "https://github.com/TeamMidnightDust/MidnightLib/issues"
},
"license": "MIT",
"icon": "assets/midnightlib/icon.png",
"environment": "*",
"entrypoints": {
"server": [
"eu.midnightdust.lib.config.AutoCommand"
],
"client": [
"eu.midnightdust.core.MidnightLib"
],
"modmenu": [
"eu.midnightdust.core.MidnightLib"
]
},
"depends": {
"fabric-resource-loader-v0": "*",
"minecraft": "*"
},
"mixins": [
"midnightlib.mixins.json"
],
"custom": {
"modmenu": {
"links": {
"modmenu.discord": "http://discord.midnightdust.eu/",
"modmenu.website": "https://midnightdust.eu/midnightlib",
"midnightlib.wiki": "https://midnightdust.eu/wiki/midnightlib"
},
"badges": [ "library" ]
}
}
}