修改部分一
This commit is contained in:
parent
b3a7f94133
commit
4305d3139e
|
|
@ -9,8 +9,8 @@ public class Services {
|
||||||
public static <T> T load(Class<T> clazz) {
|
public static <T> T load(Class<T> clazz) {
|
||||||
final T loadedService = ServiceLoader.load(clazz)
|
final T loadedService = ServiceLoader.load(clazz)
|
||||||
.findFirst()
|
.findFirst()
|
||||||
.orElseThrow(() -> new RuntimeException("Could not find service for " + clazz.getSimpleName()));
|
.orElseThrow(() -> new NullPointerException("Failed to load service for " + clazz.getName()));
|
||||||
JsonEm.LOG.debug("Loaded {} service for {}", loadedService, clazz);
|
JsonEm.LOG.debug("Loaded {} for service {}", loadedService, clazz);
|
||||||
return loadedService;
|
return loadedService;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
|
|
@ -12,7 +12,7 @@
|
||||||
"sources": "${mod_source}"
|
"sources": "${mod_source}"
|
||||||
},
|
},
|
||||||
"license": "${mod_licence}",
|
"license": "${mod_licence}",
|
||||||
"icon": "assets/jsonem/icon.png",
|
"icon": "icon.png",
|
||||||
"environment": "*",
|
"environment": "*",
|
||||||
"entrypoints": {
|
"entrypoints": {
|
||||||
"client": [
|
"client": [
|
||||||
|
|
|
||||||
|
|
@ -2,17 +2,18 @@ plugins {
|
||||||
id 'com.github.johnrengelman.shadow'
|
id 'com.github.johnrengelman.shadow'
|
||||||
}
|
}
|
||||||
|
|
||||||
loom {
|
|
||||||
forge {
|
|
||||||
mixinConfig "jsonem.mixins.json"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
architectury {
|
architectury {
|
||||||
platformSetupLoomIde()
|
platformSetupLoomIde()
|
||||||
forge()
|
forge()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
loom {
|
||||||
|
forge {
|
||||||
|
mixinConfig "${mod_id}.mixins.json"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
configurations {
|
configurations {
|
||||||
common {
|
common {
|
||||||
canBeResolved = true
|
canBeResolved = true
|
||||||
|
|
@ -54,4 +55,6 @@ shadowJar {
|
||||||
|
|
||||||
remapJar {
|
remapJar {
|
||||||
input.set shadowJar.archiveFile
|
input.set shadowJar.archiveFile
|
||||||
|
dependsOn shadowJar
|
||||||
|
archiveClassifier = null
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ modLoader = "javafml"
|
||||||
loaderVersion = "[47,)"
|
loaderVersion = "[47,)"
|
||||||
#issueTrackerURL = ""
|
#issueTrackerURL = ""
|
||||||
license = "${mod_licence}"
|
license = "${mod_licence}"
|
||||||
|
logoFile = "icon.png"
|
||||||
|
|
||||||
[[mods]]
|
[[mods]]
|
||||||
modId = "jsonem"
|
modId = "jsonem"
|
||||||
|
|
@ -12,7 +13,7 @@ authors = "${mod_authors}"
|
||||||
description = '''
|
description = '''
|
||||||
${mod_description}
|
${mod_description}
|
||||||
'''
|
'''
|
||||||
logoFile = "assets/jsonem/icon.png"
|
|
||||||
|
|
||||||
[[dependencies.jsonem]]
|
[[dependencies.jsonem]]
|
||||||
modId = "forge"
|
modId = "forge"
|
||||||
|
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 18 KiB |
Loading…
Reference in New Issue
Block a user