mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-06 16:51:37 +00:00
Fix bug where dependencies would not be loaded.
This commit is contained in:
@@ -160,7 +160,7 @@ public final class PluginManager {
|
|||||||
if (dependency == null) {
|
if (dependency == null) {
|
||||||
throw new DependencyException("Unresolved dependency: " + dependencyId + ".");
|
throw new DependencyException("Unresolved dependency: " + dependencyId + ".");
|
||||||
}
|
}
|
||||||
start(env, plugin, plugins, started);
|
start(env, dependency, plugins, started);
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] scripts = plugin.getScripts();
|
String[] scripts = plugin.getScripts();
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ public final class PluginMetaData {
|
|||||||
/**
|
/**
|
||||||
* The plugin's version.
|
* The plugin's version.
|
||||||
*/
|
*/
|
||||||
private final int version;
|
private final double version;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates the plugin meta data.
|
* Creates the plugin meta data.
|
||||||
@@ -54,7 +54,7 @@ public final class PluginMetaData {
|
|||||||
* @param version The plugin's version.
|
* @param version The plugin's version.
|
||||||
*/
|
*/
|
||||||
public PluginMetaData(String id, String name, String description, String[] authors, String[] scripts,
|
public PluginMetaData(String id, String name, String description, String[] authors, String[] scripts,
|
||||||
String[] dependencies, int version) {
|
String[] dependencies, double version) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
this.name = name;
|
this.name = name;
|
||||||
this.description = description;
|
this.description = description;
|
||||||
@@ -123,7 +123,7 @@ public final class PluginMetaData {
|
|||||||
*
|
*
|
||||||
* @return The plugin's version.
|
* @return The plugin's version.
|
||||||
*/
|
*/
|
||||||
public int getVersion() {
|
public double getVersion() {
|
||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user