somehow intellij forgot about this stuff

This commit is contained in:
dfsek
2021-11-23 21:09:42 -07:00
parent 3557536968
commit 325035822f
4 changed files with 9 additions and 5 deletions
@@ -5,7 +5,7 @@ dependencies {
tasks.withType<Jar> {
manifest {
attributes("Bootstrap-Addon-Entry-Point" to "com.dfsek.terra.addons.manifest.impl.ManifestAddonLoader")
attributes("Terra-Bootstrap-Addon-Entry-Point" to "com.dfsek.terra.addons.manifest.impl.ManifestAddonLoader")
}
}
@@ -67,6 +67,10 @@ public class ManifestAddonLoader implements BootstrapBaseAddon<ManifestAddon> {
logger.debug("Loading addon {}@{}", manifest.getID(), manifest.getVersion());
if(manifest.getSchemaVersion() != 1) {
throw new AddonException("Addon " + manifest.getID() + " has unknown schema version: " + manifest.getSchemaVersion());
}
@SuppressWarnings({ "IOResourceOpenedButNotSafelyClosed", "resource" })
ManifestAddonClassLoader loader = new ManifestAddonClassLoader(new URL[]{ addonPath.toUri().toURL() },
getClass().getClassLoader());