mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2025-07-01 23:47:50 +00:00
create addon manifests
This commit is contained in:
parent
b9a6f11245
commit
16bcc12ccb
@ -38,7 +38,7 @@ public class ManifestAddonLoader implements BootstrapBaseAddon<ManifestAddon> {
|
||||
|
||||
try {
|
||||
return Files.walk(addonsFolder, 1)
|
||||
.filter(path -> path.toFile().isFile() && path.getFileName().endsWith(".jar"))
|
||||
.filter(path -> path.toFile().isFile() && path.toString().endsWith(".jar"))
|
||||
.flatMap(path -> {
|
||||
try {
|
||||
JarFile jar = new JarFile(path.toFile());
|
||||
|
@ -28,7 +28,8 @@ public class AddonManifest implements ConfigTemplate, StringIdentifiable {
|
||||
private String license;
|
||||
|
||||
@Value("contributors")
|
||||
private List<String> contributors;
|
||||
@Default
|
||||
private List<String> contributors = Collections.emptyList();
|
||||
|
||||
@Value("entrypoints")
|
||||
private List<String> entryPoints;
|
||||
|
Loading…
x
Reference in New Issue
Block a user