mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-15 21:31:05 +00:00
somehow intellij forgot about this stuff
This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+4
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user