mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-03 16:49:11 +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) {
|
||||
throw new DependencyException("Unresolved dependency: " + dependencyId + ".");
|
||||
}
|
||||
start(env, plugin, plugins, started);
|
||||
start(env, dependency, plugins, started);
|
||||
}
|
||||
|
||||
String[] scripts = plugin.getScripts();
|
||||
|
||||
@@ -40,7 +40,7 @@ public final class PluginMetaData {
|
||||
/**
|
||||
* The plugin's version.
|
||||
*/
|
||||
private final int version;
|
||||
private final double version;
|
||||
|
||||
/**
|
||||
* Creates the plugin meta data.
|
||||
@@ -54,7 +54,7 @@ public final class PluginMetaData {
|
||||
* @param version The plugin's version.
|
||||
*/
|
||||
public PluginMetaData(String id, String name, String description, String[] authors, String[] scripts,
|
||||
String[] dependencies, int version) {
|
||||
String[] dependencies, double version) {
|
||||
this.id = id;
|
||||
this.name = name;
|
||||
this.description = description;
|
||||
@@ -123,7 +123,7 @@ public final class PluginMetaData {
|
||||
*
|
||||
* @return The plugin's version.
|
||||
*/
|
||||
public int getVersion() {
|
||||
public double getVersion() {
|
||||
return version;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user