修改部分一
This commit is contained in:
parent
b3a7f94133
commit
4305d3139e
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
|
|
@ -12,7 +12,7 @@
|
|||
"sources": "${mod_source}"
|
||||
},
|
||||
"license": "${mod_licence}",
|
||||
"icon": "assets/jsonem/icon.png",
|
||||
"icon": "icon.png",
|
||||
"environment": "*",
|
||||
"entrypoints": {
|
||||
"client": [
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 |
Loading…
Reference in New Issue
Block a user