修改部分一

This commit is contained in:
叁玖领域 2025-05-26 16:51:04 +08:00
parent b3a7f94133
commit 4305d3139e
8 changed files with 14 additions and 10 deletions

View File

@ -9,8 +9,8 @@ public class Services {
public static <T> T load(Class<T> clazz) {
final T loadedService = ServiceLoader.load(clazz)
.findFirst()
.orElseThrow(() -> new RuntimeException("Could not find service for " + clazz.getSimpleName()));
JsonEm.LOG.debug("Loaded {} service for {}", loadedService, clazz);
.orElseThrow(() -> new NullPointerException("Failed to load service for " + clazz.getName()));
JsonEm.LOG.debug("Loaded {} for service {}", loadedService, clazz);
return loadedService;
}
}

View File

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

View File

@ -12,7 +12,7 @@
"sources": "${mod_source}"
},
"license": "${mod_licence}",
"icon": "assets/jsonem/icon.png",
"icon": "icon.png",
"environment": "*",
"entrypoints": {
"client": [

View File

@ -2,17 +2,18 @@ plugins {
id 'com.github.johnrengelman.shadow'
}
loom {
forge {
mixinConfig "jsonem.mixins.json"
}
}
architectury {
platformSetupLoomIde()
forge()
}
loom {
forge {
mixinConfig "${mod_id}.mixins.json"
}
}
configurations {
common {
canBeResolved = true
@ -54,4 +55,6 @@ shadowJar {
remapJar {
input.set shadowJar.archiveFile
dependsOn shadowJar
archiveClassifier = null
}

View File

@ -2,6 +2,7 @@ modLoader = "javafml"
loaderVersion = "[47,)"
#issueTrackerURL = ""
license = "${mod_licence}"
logoFile = "icon.png"
[[mods]]
modId = "jsonem"
@ -12,7 +13,7 @@ authors = "${mod_authors}"
description = '''
${mod_description}
'''
logoFile = "assets/jsonem/icon.png"
[[dependencies.jsonem]]
modId = "forge"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB