Fix bug where dependencies would not be loaded.

This commit is contained in:
Major-
2014-02-13 23:52:59 +00:00
parent 1883d131fe
commit af5fa61368
2 changed files with 4 additions and 4 deletions
@@ -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;
} }